On Thursday 15 February 2007 19:41:27 Florian Richter wrote: > Hello! > > I have problems during shutdown with a hand-started daemon. > > To make it comprehensible, I just give an example: > At boot up Archlinux starts syslog-ng network cups and some other daemons, > which were listed in /etc/rc.conf > Then I log in and start yacy (P2P Search engine) with > /etc/rc.d/yacy start > Afterwards I shutdown the computer. > /etc/rc.shutdown firstly stops the daemons in rc.conf:cups network and > syslog-ng > Then yacy... > But yacy needs an internet-connection, the network-daemon > > The point is, in some situation daemons aren't stopped in the order they > were started. > > To solve that, I propose to use the time-stamp of the files in > /var/run/daemons/ to determinate the order of shutting down the daemons. > The daemons would be stopped exactly in the reversed order, they were > started. This would also be a solution to Feature Request #5740 > (http://bugs.archlinux.org/task/5740). Only active daemons would be > terminated, even if they are in /etc/rc.conf. > I've implemented this in the attached patch. > What do you think about it? > > Florian > > PS: Sorry for my bad English
I like it, nice job -- Guillermo A. Amaral, CSE @ site: http://www.guillermoamaral.com/ @ blog: http://blog.guillermoamaral.com/ # nick: thewonka / thewonka81
pgp10yTV5rU5N.pgp
Description: PGP signature
_______________________________________________ arch mailing list [email protected] http://www.archlinux.org/mailman/listinfo/arch
