added dweet and reboot
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user