LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   program to run whne system shuts down (http://www.linuxquestions.org/questions/linux-general-1/program-to-run-whne-system-shuts-down-104088/)

jayakrishnan 10-15-2003 01:48 AM

program to run when system shuts down
 
:confused:
Hi

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


regards
jayakrishnan

Caysho 10-15-2003 07:39 AM

Adding to shutdown script
 
have a look at
http://www.linuxquestions.org/questions/history/92422 .
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 11:21 PM.