reboot canceling
This commit is contained in:
@@ -30,8 +30,10 @@ def sync():
|
||||
current_state = changer.process_change()
|
||||
|
||||
server.post_state(current_state)
|
||||
print " everything ok, canceling shutdown "
|
||||
commands.getoutput('/sbin/shutdown -c')
|
||||
except:
|
||||
print " panicking safely ! "
|
||||
safely_panic()
|
||||
print " rebooting "
|
||||
commands.getoutput('/sbin/shutdown -r now')
|
||||
commands.getoutput('/sbin/shutdown -r +5')
|
||||
|
||||
Reference in New Issue
Block a user