How to run script at shutdown?
4465
Execute a script upon logout/reboot/shutdown in Ubuntu
83258
How to schedule a task to run when shutting down windows
52511
Best way to make a shutdown hook?
12663
How can I run a script on boot?
128510
Run a program from python, and have it continue to run after the script is killed
86139
Run script when monitor is connected
54991
How can I install updates and shut down from the command line?
30341
Is there a windows app or simple scripting way to persuade windows to shutdown after a process ends?
124175
Java shutdown hook
83438
Script to turn fast startup on/off
148418
Cannot turn script back on
41999
How to run a script with systemd right before shutdown?
113099
Using The Terminal Command to Shutdown, Restart and Sleep My Mac?
48334
How can I run a local command (to run a script) on (just before) log out of a Unity session?
24962
An init-script does not get called on shutdown
157362
upstart scripts: run a task after networking goes up
21965
What command is executed when shutdown from the graphical menu in 14.04?