Run script on shutdown or restart
4465
Execute a script upon logout/reboot/shutdown in Ubuntu
112706
How do I run a script in the background and leave it running when I log out?
52511
Best way to make a shutdown hook?
20306
Auto-run scripts security options
130560
How to supervise and automatically restart a process?
118841
How can I run a script that starts before my login screen?
41786
How to run a script during boot as root
137198
How to change Power button shutdown action to run a script under systemd
122289
Re-run an application script when it crashes?
124639
How to get shutdown hook to execute on a process launched from Eclipse
130015
How do I shut down or reboot from a terminal?
37827
Proper way to execute a script on system startup?
24645
Automatically restart a Unix job if it goes down?
14812
Autorun a script after I plugged or unplugged a USB device
27288
Possible to run scripts on sleep and wake?
61757
Does `at` run a command later if the computer is off at the specified time?
95737
Hotkey to restart autohotkey script?