David Haller said the following on 04/12/2013 02:18 PM:
Hello,
On Fri, 12 Apr 2013, Anton Aylward wrote:
The sysvinit approach did some stupid things. You can see in the old /etc/init.d/rc{1,3,5}/ there are S for start and K for Kill scripts. Moving from one state to another could involve killing and then restarting a deamon. That seems 'illogical' to me.
Oh yes?
==== man 8 init ==== CHANGING RUNLEVELS [..] When init is requested to change the runlevel, it sends the warning signal SIGTERM to all processes that are undefined in the new runlevel. ====
YES - because I'm not talking about undefined processes. I'm talking about the ones for which there is a K file in the current run level and a S file in the new level. For example, moving from 3 to 5, there is /etc/init.d/rc3.d/K02cups then /etc/init.d/rc5.d/S10cups Oh, wait, no! There is explicit code if test -s /etc/rc.status then . /etc/rc.status else exit 1 fi Well OK, but its up to the person coding the unit to take care of that. Its not intrinsic to the mechanism as it is with systemd. -- "Current economics is merely refining the obsolete. Economic theory is still based on the scarcity axiom, which doesn't apply to information. When I sell you a phone, I no longer have it. When I sell information to you, I have more information by the very fact that you have it and I know you have it. That's not even true of money." -- Peter Drucker, WiReD6.03 Mar-1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org