From abfb7a7a6fe53e73d4988919d0313d9a4333705b Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Tue, 22 Nov 2022 23:22:52 +0100 Subject: [PATCH] Allow using some files to stop restart of applications --- root_overlay/bin/watcher | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/root_overlay/bin/watcher b/root_overlay/bin/watcher index 05c3df0..e319e90 100755 --- a/root_overlay/bin/watcher +++ b/root_overlay/bin/watcher @@ -1,7 +1,11 @@ #!/bin/sh while true; do - start-stop-daemon -S -m -p /tmp/poll_desfire.pid -x /bin/poll_desfire -b -- /root/key /tmp/nfc_fifo - start-stop-daemon -v -p /tmp/fcpy.pid -S -b -m -v -x /usr/bin/python -- /usr/bin/door_pi_control + if [ ! -f /tmp/debugging_poll_desfire ]; then + start-stop-daemon -S -m -p /tmp/poll_desfire.pid -x /bin/poll_desfire -b -- /root/key /tmp/nfc_fifo + fi + if [ ! -f /tmp/debugging_door_pi_control ]; then + start-stop-daemon -v -p /tmp/fcpy.pid -S -b -m -v -x /usr/bin/python -- /usr/bin/door_pi_control --log_host 10.11.1.1:5556 + fi #start-stop-daemon -v -p /tmp/webiface.pid -S -b -m -v -x /usr/bin/python -- /usr/bin/launch_webadmin sleep 5 done