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.
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)
I am a senior computer science student who currently enjoys free AWS services because of his Large Scale Distributed Computing class! Feel free to contact me at jrs aT jrsandberg d0t com
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...
ReplyDeleteUnfortunately, nothing works. I'm still unable to post to the log server upon shutdown.
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)
ReplyDeletenote: that some systems have .bash_logout. You'll have to figure out which one you have.
ReplyDelete