:: Re: [DNG] New goodies from systemd
Etusivu
Poista viesti
Vastaa
Lähettäjä: onefang
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] New goodies from systemd
On 2023-08-08 02:14:21, Steve Litt wrote:
> onefang said on Tue, 8 Aug 2023 15:09:25 +1000
>
> >Not sure what you mean by "declarative services" here?
>
> Declarative syntax means you configure something using a bunch of
> variables defined and curated by the program you're configuring. The
> opposite of declarative syntax is imperative syntax, which is another
> word for programming something.
>
> For example, /etc/fstab is declarative, and the sysvinit init script for
> dbus is imperative.
>
> See https://www.educative.io/blog/declarative-vs-imperative-programming
>
> >If it's what I
> >think you meant, then sys V init has that.
>
> Sysvinit init scripts are imperative, not declarative. Systemd unit
> files are declarative. /etc/fstab is declarative.


Sys V init "scripts" are partially declerative. Look at the comment
block at the top of them.

--
A big old stinking pile of genius that no one wants
coz there are too many silver coated monkeys in the world.