LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



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

Rep: Reputation: 30
program to run when system shuts down



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

Last edited by jayakrishnan; 10-15-2003 at 01:55 AM.
 
Old 10-15-2003, 07:39 AM   #2
Caysho
Member
 
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
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.
 
  


Reply


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 //192.168.1.1 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 09:28 PM.

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