[Voyage-linux] stopping a script on reboot

Ant A (spam-protected)
Sat Mar 20 03:33:48 HKT 2010


Hello I am trying to stop a script when I tell the ALIX to reboot. I have a
script that runs at boot already and I want it to stop when I do a reboot
command. It needs to stop because this script constantly writes and deletes
a file and if I do a reboot while this is running then I get an STALE error
and I need to run fsck

TO run the script at boot I put it in /etc/init.d and then on /etc/rc.local
i write ./script_name, this runs it at the end of most processes at boot.
ALso to tell the system to run the script I run the following command:

update-rc.d blah defaults

So I am thinking is something similar Any ideas? Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20100319/4aef0338/attachment-0001.html>


More information about the Voyage-linux mailing list