shutdown on BSD and Linux

Jeremy C. Reed reed at reedmedia.net
Thu Sep 7 09:10:12 PDT 2006


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.






More information about the Users mailing list