From 83ebcbc0298f03d910722903ad6e363850664ff4 Mon Sep 17 00:00:00 2001 From: Jonny Ervine Date: Wed, 10 Jun 2015 22:52:47 +0800 Subject: [PATCH] Update thd --- thd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thd b/thd index e2420c4..fa19281 100644 --- a/thd +++ b/thd @@ -29,8 +29,8 @@ fi case "${1}" in start) echo -n "Starting Temperature and Humidity Monitoring Daemon: " - - start-stop-daemon --start --background -m --oknodo --pidfile /var/run/th.pid --startas /bin/bash -- -c "exec ${DAEMON} >> ${LOGFILE}" + sleep 10 # We need to wait until mysqld has started - this is a horrible workaround for now + start-stop-daemon --start --background -m --oknodo --pidfile /var/run/th.pid --startas /bin/bash -- -c "exec ${DAEMON} >> ${LOGFILE} 2>&1" echo "${NAME}." ;;