added dweet and reboot

This commit is contained in:
Senad Uka
2016-06-08 09:16:44 +02:00
parent f9defb8e2a
commit f8a8284944
4 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import config
from state.server import Server
from state.changer import Changer
from state.file import File
import commands
def safely_panic():
safe_state = {}
@@ -32,3 +33,5 @@ def sync():
except:
print " panicking safely ! "
safely_panic()
print " rebooting "
commands.getoutput('/sbin/shutdown -r now')