Shutdown/logoff script in Ubuntu 13.10

Posted by TNT on Ask Ubuntu See other posts from Ask Ubuntu or by TNT
Published on 2013-11-08T15:39:40Z Indexed on 2013/11/08 16:15 UTC
Read the original article Hit count: 267

Filed under:
|

Which would be the best way to run a script upon GUI logoff, shutdown, hibernate, sleep modes? In 12.04 I think I did this in /etc/lightdm/lightdm.config, but on 13.10, the folder structure changed and when I create this script, The display manager wont even start upon boot.

I am looking to implement a simple automatic truecrypt unmount command

truecrypt -d

but of course this would go for any script.

© Ask Ubuntu or respective owner

Related posts about shell-scripting

Related posts about logout