LCE: Systemd two years on
LCE: Systemd two years on
Posted Nov 9, 2012 1:22 UTC (Fri) by marcH (subscriber, #57642)In reply to: LCE: Systemd two years on by mpr22
Parent article: LCE: Systemd two years on
Posted Nov 9, 2012 7:50 UTC (Fri)
by smitty_one_each (subscriber, #28989)
[Link]
Posted Nov 9, 2012 19:00 UTC (Fri)
by speedster1 (guest, #8143)
[Link]
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)
[Link] (1 responses)
Posted Nov 15, 2012 15:21 UTC (Thu)
by marcH (subscriber, #57642)
[Link]
The poster right above yours seems to have understood it.
Posted Nov 15, 2012 12:31 UTC (Thu)
by Wol (subscriber, #4433)
[Link] (1 responses)
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,
Posted Nov 15, 2012 14:30 UTC (Thu)
by Eckhart (guest, #74500)
[Link]
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.
LCE: Systemd two years on
LCE: Systemd two years on
LCE: Systemd two years on
LCE: Systemd two years on
LCE: Systemd two years on
Wol
LCE: Systemd two years on