Module system :: Class System
[hide private]
[frames] | no frames]

Class System

source code

Instance Methods [hide private]
 
halt(self, when=1)
Halt the system.
source code
 
reboot(self, when=1)
Reboot the system.
source code
 
cancel(self)
Cancel a scheduled shutdown; halt() or reboot().
source code
Method Details [hide private]

halt(self, when=1)

source code 

Halt the system.

Parameters:
  • when (str) - When to perform the shutdown. One of:
    • now : immediate. note: reply not sent.
    • +m : where m is minutes.
    • hh:mm : time (hours:minutes) 24hr clock.
Decorators:
  • @remote
  • @pam(user= 'root')

See Also: shutdown(8)

reboot(self, when=1)

source code 

Reboot the system.

Parameters:
  • when (str) - When to perform the reboot. One of:
    • now : immediate. note: reply not sent.
    • +m : where m is minutes.
    • hh:mm : time (hours:minutes) 24hr clock.
Decorators:
  • @remote
  • @pam(user= 'root')

See Also: shutdown(8)

cancel(self)

source code 

Cancel a scheduled shutdown; halt() or reboot().

Decorators:
  • @remote
  • @pam(user= 'root')