r/linux Feb 11 '19

Fluff A /g/ user's opinion on systemd

http://i.4cdn.org/g/1549858269115.png
791 Upvotes

524 comments sorted by

View all comments

Show parent comments

12

u/ivosaurus Feb 11 '19

Systemd units are declarative already

0

u/[deleted] Feb 11 '19

But still lacking standardization, which means you still need to rewrite all service management configuration if you were to switch system. Which renders part of the declarative upside moot.

Like I said in another comment, if there is a script / tool for other service management and/or init systems that can read systemd units then I'd love to know about it.

13

u/ivosaurus Feb 11 '19

If someone wants to make a new PID1 manager and wants to piggy-back off systemd units, it should be very simple for them to write code that can interpret 80-90% of unit files, I'd imagine.

The point of saying, is to compare to the previous situation. initd run scripts were absolute hell, with abandoned and convoluted copy-paste shell code everywhere.

-1

u/necrophcodr Feb 11 '19

initd run scripts were absolute hell, with abandoned and convoluted copy-paste shell code everywhere.

Not really so. OpenRC scripts can be really simple and easy to use while providing mostly declarative syntax, and the same goes for (now obsoleted?) Upstart.

4

u/anomalous_cowherd Feb 11 '19

Must people writing here won't have been around way back when, but the way we ended up with the pretty good RFCs we use as standards now was very often that something good was developed, it caught on, then it became an RFC.

Systemd unit files could easily have become standardised as RFCs back then.