Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
LCE: Systemd two years on
Posted Nov 9, 2012 7:50 UTC (Fri) by smitty_one_each (subscriber, #28989)
Posted Nov 9, 2012 19:00 UTC (Fri) by speedster1 (subscriber, #8143)
sysvinit -> inittab -> rc script -> init.d scripts
systemd -> unit files -> init.d scripts
There is an option to stick the start/stop command lines directly in the unit files if they are single-liners, but if that is the case the main thing an admin might want to do is stick in a 'strace' or 'ltrace' of the daemon, and that can just as easily be done by editing the unit file as an init.d script.
The increasing list of dependencies for normal systemd operation on the other hand... can indeed be a pain for embedded projects. Even the requirement for cgroup support required a patch against the vendor-supplied kernel (yes many embedded Linux projects are *still* that out of date)
Posted Nov 15, 2012 9:09 UTC (Thu) by HelloWorld (guest, #56129)
Posted Nov 15, 2012 15:21 UTC (Thu) by marcH (subscriber, #57642)
The poster right above yours seems to have understood it.
Posted Nov 15, 2012 12:31 UTC (Thu) by Wol (guest, #4433)
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.
Posted Nov 15, 2012 14:30 UTC (Thu) by Eckhart (guest, #74500)
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