-   Linux - General (
-   -   program to run whne system shuts down (

jayakrishnan 10-15-2003 01:48 AM

program to run when system shuts down

Where do i put my shell script if i want it to run just before my system shuts down

for example i can put the script in rc.local so that it gets executed when my system starts up


Caysho 10-15-2003 07:39 AM

Adding to shutdown script
have a look at .
The trick will be creating a new service (I don't know how, unless it's merely creating a new script in the services directory ?).
'man chkconfig' for more details.

All times are GMT -5. The time now is 03:39 AM.