Hello, On Fri, 12 Apr 2013, Anton Aylward wrote:
David Haller said the following on 04/12/2013 02:18 PM:
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.
A service having a "S*" file in the new runlevel is _defined_ in that runlevel and won't get signalled (TERM ... KILL) by init.
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.
I don't have cups installed (I don't print), but that snippet is not the culprit why cupsd might get/have been killed and restarted on a RL-change on your box with init. Have a look into /etc/rc.status, that should still exist on 12.3.
Its not intrinsic to the mechanism as it is with systemd.
Unless the init-script-writer breaks the init-mechanism, all is fine. And I _BET_ that systemd units will be breaking the systemd mechanism too, sooner or later, most likely by borked dependecies or some such. BTW: systemd is trying to do more each week. Or so it seems to me. cf. http://freedesktop.org/wiki/Software/systemd/. I don't need a fucking /etc/machine-id. # ls -l /etc/machine-id lrwxrwxrwx [..] /etc/machine-id -> /dev/null I DO NOT WANT systemd replacing either syslog, inetd or mingetty. I DO NOT WANT localed, logind, whatnotd (nor ConsoleKit or any other of that *Kit stuff). I do not use any "Display Manager" nor any "Desktop Environment". I mount and want to keep mounting stuff manually. And IMNSHO merging /usr and / is plain stupid. My guess it's all just to hide the bloat. systemd is an abomination with respect to the unix-mantra: Do *one* thing, and do that good. systemd is trying to become the egg-laying-woolen-milk-giving-sow. And I can see it coming that it'll be "unmaintainable" in a year or two. And we'll get a big yay promise for systemd2, all new and shiny and different! *hoooray* Hell, AFAIK, even MacOS X has a better seperation between the GUI and the system. Any intermingling of system and desktop stuff (see Networkmanager, *Kit, dbus, pulse/phonon/gstreamer, and now systemd) is EVIL! And using XML config-files??? [aside: I'm running only those I could not avoid (yet), i.e. console-kit, polkitd and hald for KDE stuff] I'm ok with the idea of converging /etc/*-release into os-release though. -dnh, frotzing Linux (SuSE) since '97, and anyone who finds sarcasm and has any objections can cube it and stuff it where the sun don't shine. Sideways. I'm *that* close to switch to gentoo or LFS and/or create a "Hallerlix2" once and for all. Or to a BSD. PS: I can't think of a package on freedesktop.org that I like ... -- Get your acts together, guys. Stop blathering and frothing at the mouth. -- Linus Torvalds -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org