Added actual reboot

This commit is contained in:
ftc
2019-08-31 18:08:33 +00:00
parent 5057596cb1
commit 677119f5b9
+2 -1
View File
@@ -24,4 +24,5 @@ while True:
time.sleep(5) time.sleep(5)
except CalledProcessError as e: except CalledProcessError as e:
log.error(e.output.decode('ascii', 'ignore')) log.error(e.output.decode('ascii', 'ignore'))
log.error("Will reboot now") log.error("Will reboot now")
output = subprocess.check_output(['shutdown', '-r', 'now'], stderr=subprocess.STDOUT)