How To Cancel Shutdown
How To Cancel Shutdown Rating: 3,8/5 3500 votes
How To Cancel Shutdown Process
How To Cancel Shutdown Command
If you are fast enough you can issue an init 2 (or whatever runlevel you want) and that will likely stop the shutdown. Anything involving killing the shutdown command will fail as the command runs too quicklyI tried this with the script below and and even it's not fast enough to stop the shutdown #!/bin/bashshutdown -h nowshutdown -c 'Aborting Shutdown'Broadcast message from iain@iain-ubuntu(/dev/pts/0) at 16:50.The system is going down for halt NOW!shutdown: Cannot find pid of running shutdownWhere as interactively shutdown -h nowinit 2the system stays up.