diff --git a/monitor_network.py b/monitor_network.py index f1f9ac9..bfe3d95 100755 --- a/monitor_network.py +++ b/monitor_network.py @@ -24,4 +24,5 @@ while True: time.sleep(5) except CalledProcessError as e: log.error(e.output.decode('ascii', 'ignore')) - log.error("Will reboot now") \ No newline at end of file + log.error("Will reboot now") + output = subprocess.check_output(['shutdown', '-r', 'now'], stderr=subprocess.STDOUT)