View Full Version : shutdown script

23rd March 2005, 07:34 AM
I used chkconfig to submit a script called firewall. "firewall start" will start an av scanner and "firewal stop" will stop the av scanner.

I have two questions:

1. When the machine is shut down, does Linux simply send TERM/KILL signal to the av scanner or it will actually execute "firewall stop" ?? How can I be sure that "firewall stop" is executed ?

2. When the machine is shutting down, how can I make sure 'firewall' got executed before the networking is shutdown ? The reason is that everytime the machine is shutdown, the script will inform a license server on the internet that the machine is shutting down.