Run commands on system shutdown/reboot/logout
4860
How to run scripts on start up?
135665
How can I do a full shutdown of windows 10 without logging in?
116248
Best Way to Gracefully Shutdown a Java Command Line Program
41395
Alternative way to run a sudo command on startup
112706
How do I run a script in the background and leave it running when I log out?
130015
How do I shut down or reboot from a terminal?
114160
How to automatically run commands on SSH login?
64699
One click shutdown Ubuntu and load into alternative bootup
34743
Run command at boot as root
96952
Powering down the display in XP with a command
143804
How to run a command or script at screen lock/unlock?
138665
How to run a command before the machine automatically shuts down?
20385
How to run a command at login?
89674
Execute shell script or command on idle time
130938
Java: Handle logoff or shutdown on Windows and Linux
44229
Run simple bash script to start applications at login
85942
How can I make a process I start during an SSH session run after the session has ended?