reboot canceling

This commit is contained in:
Senad Uka
2016-06-08 09:28:42 +02:00
parent f8a8284944
commit a12a218e85

View File

@@ -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')