Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-02-2008, 01:38 AM   #1
Registered: Jul 2007
Posts: 44

Rep: Reputation: 15
exec a command on shutdown/restart

is there somthing like rc.local but for shutdown/restart?
Old 03-02-2008, 04:27 AM   #2
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
/etc/rc.local.shutdown which is called by /etc/rc.shutdown
Old 03-02-2008, 05:56 AM   #3
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
All of the scripts in /etc/rc0.d


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
php: exec can't run lynx after apache restart BrianK Programming 4 01-16-2006 05:47 PM
Shutdown.....but it restart max_232 Linux - Laptop and Netbook 2 07-08-2005 04:32 AM
Cannot restart, reboot, or shutdown slimfadey Linux - Newbie 3 04-28-2005 07:07 PM
shutdown/restart problems PiLgRiM SUSE / openSUSE 1 11-10-2004 08:17 AM
shutdown & restart linuxzouk Linux - Newbie 2 06-11-2004 05:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:35 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