[rhn-users] adding a task for shutdown
spiv007
spiv007 at gmail.com
Thu Apr 7 16:42:29 UTC 2005
I would like my box to preform a few task when it is shutting down.
But for some reason it will not run and I not sure what im doing
wrong.
Also in order for the script to work do it have to be in chkconfig
format? Or can
just make a basic shell script?
I create the script and put it in /etc/init.d/foo
for there i link the following
/etc/init.d/foo -> /etc/rc.d/rc0.d/K01foo
/etc/init.d/foo -> /etc/rc.d/rc6.d/K01foo
So after that if i do a shutdown -r or shutdown -h the script does not
run on those runlevel.
The way im testing this is by making a log file to echo to /tmp/foo.log
More information about the rhn-users
mailing list