Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-15-2003, 01:48 AM   #1
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
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


Last edited by jayakrishnan; 10-15-2003 at 01:55 AM.
Old 10-15-2003, 07:39 AM   #2
Registered: Sep 2002
Location: Perth Australia
Distribution: OpenWRT, debian, Ubuntu
Posts: 135
Blog Entries: 18

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
to run program on remote system ashu283 Linux - Networking 2 10-19-2005 04:30 AM
system("top") in a C program giving problems when the C prg is run by cron rags2k Programming 1 09-02-2004 04:25 PM
How to setup shells to run when the server boots/shuts down Colmenares Red Hat 2 08-19-2004 05:04 PM
how can i access windows system just sa i do // in the run program in wind sibu_rajappan Linux - General 4 05-28-2004 08:56 AM
Slack 9.1 shuts down leaving file system dirty wartstew Slackware 3 10-15-2003 08:47 PM

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration