Execute a script upon logout/reboot/shutdown in Ubuntu
127036
Execute script before shutting down
46850
Run a command in a shell and keep running the command when you close the session
3270
Execute command before shutdown/reboot
30886
Reload bash's .profile without logging out and back in again
18192
Run the script file after 5 or 10 min after restarting the system
37827
Proper way to execute a script on system startup?
30341
Is there a windows app or simple scripting way to persuade windows to shutdown after a process ends?
112847
How do I make a program auto-start every time I log in?
72160
Why would a shutdown script NOT run?
114891
MacBook Air/Pro: run script upon lid close?
41395
Alternative way to run a sudo command on startup
48334
How can I run a local command (to run a script) on (just before) log out of a Unity session?
86139
Run script when monitor is connected
130015
How do I shut down or reboot from a terminal?
20385
How to run a command at login?
61757
Does `at` run a command later if the computer is off at the specified time?
102139
How do I run a script at start up?