Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th July 2006, 01:29 PM
elver Offline
Registered User
 
Join Date: Jul 2006
Posts: 4
Shutdown script?

There's /etc/rc.local to run stuff after boot, but is there anything similar to run commands on shutdown/reboot?

There's a large file that's being copied to a ramdisk on boot and we'd like to copy it back to the disk on shutdown / reboot / power failure / whatnot.
Reply With Quote
  #2  
Old 4th July 2006, 01:39 PM
PilotJLR's Avatar
PilotJLR Offline
Registered User
 
Join Date: Nov 2005
Location: flying a cubicle
Posts: 465
Yes, for shutdown scripts, put a script in /etc/rc.d/rc0.d/
Like the default scripts in there, the filename needs to start with K, then a number. K means "stop" or "kill" and scripts are run starting with the smallest number after K, then moving up.
Then you can also apply the script to reboot by copying or linking the script into /etc/rc.d/rc6.d/
Reply With Quote
Reply

Tags
script, shutdown

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GDM shutdown script MuadNu Using Fedora 0 7th February 2009 08:39 PM
Shutdown Script huangja Using Fedora 3 5th August 2008 08:02 PM
shutdown script cweng Using Fedora 0 23rd March 2005 06:34 AM


Current GMT-time: 18:52 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat