LWN.net Logo

LCE: Systemd two years on

LCE: Systemd two years on

Posted Nov 15, 2012 12:31 UTC (Thu) by Wol (guest, #4433)
In reply to: LCE: Systemd two years on by marcH
Parent article: LCE: Systemd two years on

aiui, any *properly* *written* init script is 99% boilerplate, and 1% specific. Assuming just ten lines of specific code, that's a thousand lines of boilerplate :-)

systemd simply implements that 99% in small C procedures. The result is far less duplicate code, and far less opportunity for mistakes. Plus far greater testing, and hence solidity.

That one percent is still a text-editable script, just a systemd config file rather than bash code.

Cheers,
Wol


(Log in to post comments)

LCE: Systemd two years on

Posted Nov 15, 2012 14:30 UTC (Thu) by Eckhart (guest, #74500) [Link]

> aiui, any *properly* *written* init script is 99% boilerplate, and 1% specific.

Properly written init scripts are a rare thing to begin with. Just as an example, the behaviour of Debian init scripts wrt to "force-reload" is completely random: about half of the init scripts start non-running services on force-reload, the other half of them don't.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds