Added actual reboot

This commit is contained in:
ftc
2019-08-31 18:08:33 +00:00
parent 5057596cb1
commit 677119f5b9
+1
View File
@@ -25,3 +25,4 @@ while True:
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)