PDA

View Full Version : Help..Cancel a shutdown from terminal?




peter202
Feb 23, 2007, 07:14 PM
Hi all.
Just wandering; If you have set your machine to halt in number of mins if there is a way to cancel that shutdown with a command?

I have searched google and tried all sorts of commands with no luck..

Cheers!



bobber205
Feb 23, 2007, 07:48 PM
Yes. You have to kill the "process".

How you do this, I can't recall offhand.

mwdmeyer
Feb 23, 2007, 09:15 PM
From man shutdown:

A scheduled shutdown can be canceled by killing the shutdown process (a
SIGTERM should suffice). The /var/run/nologin file that shutdown created
will be removed automatically.

asdfman5432
Mar 25, 2012, 08:46 PM
When you schedule it in Terminal, you should get something like this
Ex. [pid 1345]. In your terminal window (if you have admin access) type "sudo kill whatever the number comes after pid" if it asks you to type in a password, type in an administrator's password. It should quit the process "shutdown". It stops it from shutting down. Hope this helps!