Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-14-2005, 09:38 AM   #1
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 137Reputation: 137
Automatically running script at shutdown

I have a backup script that I have setup to run on command, but I would rather that it ran automatically.

I could do this at startup or on a 'cron' or 'at' command, but I would rather run it at shutdown, after I have finished my days work.

Any ideas?

Old 05-14-2005, 09:59 AM   #2
Registered: Feb 2005
Distribution: slack 10
Posts: 50

Rep: Reputation: 15
The script /etc/rc.d/rc.6 is executed, when you shut down.
You could execute your script from in there.

Or you write your own shutdown script, which first executes your script and runs shutdown -h afterwards.
Old 05-14-2005, 10:10 AM   #3
Senior Member
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Original Poster
Rep: Reputation: 137Reputation: 137
Many thanks, I will use the rc.6 option.



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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shutdown automatically if linux system is idle for sometime ahalya Linux - Software 1 03-30-2005 12:39 AM
slack doesnt shutdown automatically?? yenonn Slackware 6 01-02-2004 09:38 AM
writing a script running firestarter automatically with kppp without root priviliges melquiades Linux - Newbie 3 08-11-2003 06:50 AM
running a script automatically when Logging out? hamster Linux - General 2 06-03-2003 08:49 PM
how to automatically power off after shutdown in redhat7.3(kernel 2.4.20) prad Linux - General 8 12-18-2002 02:37 PM

All times are GMT -5. The time now is 08:13 AM.

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