Logic Machine Forum
Restart Z-wave daemon - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Restart Z-wave daemon (/showthread.php?tid=2958)



Restart Z-wave daemon - Bobby - 04.11.2020

Hi!

Can anyone help me with creating a script that stops and starts the z-wave daemon every night at 00:00 ish?


RE: Restart Z-wave daemon - admin - 05.11.2020

Use a scheduled script.
Code:
os.execute('killall zwave')
os.sleep(5)
os.execute('killall -9 zwave')