:: Re: [DNG] New goodies from systemd
Forside
Slet denne besked
Besvar denne besked
Skribent: Steve Litt
Dato:  
Til: dng
Emne: Re: [DNG] New goodies from systemd
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.

HTH,

SteveT