Wednesday, February 4, 2009

Fedora Shutdown Script

Someone was asking me for this in class today : http://www.linuxforums.org/forum/redhat-fedora-linux-help/64580-where-shutdown-script.html If it works or not I know not since I am not using fedora. Good luck!

3 comments:

  1. That's more or less what I did find - the page you link to suggests adding to /etc/rc6.d/S01reboot, which is actually a symlink to /etc/init.d/halt, which runs /sbin/halt.local, which is the file I was trying to use...

    Unfortunately, nothing works. I'm still unable to post to the log server upon shutdown.

    ReplyDelete
  2. The easiest way is to add a .logout file to the home directory of the user that is logging out. This will be the first item executed upon shutdown (e.g. init 6)

    ReplyDelete
  3. note: that some systems have .bash_logout. You'll have to figure out which one you have.

    ReplyDelete