From 88083cc1840e93258b32d91b21f7471e115cd3cf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Jun 2017 10:12:35 +0100 Subject: [PATCH] Fix watchdog --- src/freedombone-utils-watchdog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-utils-watchdog b/src/freedombone-utils-watchdog index 0a8856e1..7f22caf2 100755 --- a/src/freedombone-utils-watchdog +++ b/src/freedombone-utils-watchdog @@ -54,7 +54,7 @@ function add_watchdog_daemon { echo '' >> /usr/bin/$WATCHDOG_SCRIPT_NAME echo "# keep ${daemon_name} daemon running" >> /usr/bin/$WATCHDOG_SCRIPT_NAME - echo "RUNNING=$(pgrep ${daemon_name} > /dev/null && echo Running)" >> /usr/bin/$WATCHDOG_SCRIPT_NAME + echo "RUNNING=\$(pgrep ${daemon_name} > /dev/null && echo Running)" >> /usr/bin/$WATCHDOG_SCRIPT_NAME echo 'if [ ! $RUNNING ]; then' >> /usr/bin/$WATCHDOG_SCRIPT_NAME echo " systemctl start ${daemon_name}" >> /usr/bin/$WATCHDOG_SCRIPT_NAME echo ' echo -n $CURRENT_DATE >> $LOGFILE' >> /usr/bin/$WATCHDOG_SCRIPT_NAME