DragonFly BSD
DragonFly users List (threaded) for 2006-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: shutdown on BSD and Linux


From: "Jeremy C. Reed" <reed@xxxxxxxxxxxxx>
Date: Thu, 7 Sep 2006 11:07:23 -0500 (CDT)

Just to clarify, the rc.shutdown script uses rcorder with the "-k 
shutdown" option for  /etc/rc.d/*.


pkgbox:/home/reed> grep 'KEYWORD.*shutdown' /etc/rc.d/*
/etc/rc.d/cron:# KEYWORD: shutdown
/etc/rc.d/inetd:# KEYWORD: shutdown
/etc/rc.d/ipfs:# KEYWORD: shutdown
/etc/rc.d/local:# KEYWORD: shutdown
/etc/rc.d/localdaemons:# KEYWORD: shutdown
/etc/rc.d/mixer:# KEYWORD: shutdown
/etc/rc.d/nfsclient:# KEYWORD: shutdown
/etc/rc.d/random:# KEYWORD: shutdown
/etc/rc.d/swap1:# KEYWORD: shutdown


pkgbox:/home/reed> rcorder -k shutdown /etc/rc.d/*
/etc/rc.d/swap1
/etc/rc.d/random
/etc/rc.d/ipfs
/etc/rc.d/nfsclient
/etc/rc.d/local
/etc/rc.d/mixer
/etc/rc.d/cron
/etc/rc.d/localdaemons
/etc/rc.d/inetd

It does the above in reverse order runs each with "stop".

Note that the /etc/rc.d/localdaemons above handles the local_startup 
(/usr/pkg/etc/rc.d /usr/local/etc/rc.d /usr/X11R6/etc/rc.d) directories -- 
but it doesn't use rcorder for them even though it probably should also to 
take advantage of "# KEYWORD: shutdown" also from the scripts from pkgsrc.




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]