Help..Cancel a shutdown from terminal?

Discussion in 'macOS' started by peter202, Feb 23, 2007.

  1. peter202 macrumors member

    peter202

    Joined:
    Sep 2, 2006
    Location:
    Corby, United Kingdom
    #1
    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!
     
  2. bobber205 macrumors 68020

    bobber205

    Joined:
    Nov 15, 2005
    Location:
    Oregon
    #2
    Yes. You have to kill the "process".

    How you do this, I can't recall offhand.
     
  3. mwdmeyer macrumors member

    Joined:
    Dec 23, 2004
    Location:
    Sydney, Australia
    #3
    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.
     
  4. asdfman5432 macrumors newbie

    Joined:
    Mar 25, 2012
    #4
    Re:

    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!
     

Share This Page