From 9c2a0a80761a040598081f7e33d6f89f53b65377 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Thu, 18 Dec 2014 23:12:03 -0500 Subject: [PATCH] Removed return on logfile creation in init script that was causing service not to start --- distros/debian/openalpr-daemon.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distros/debian/openalpr-daemon.init b/distros/debian/openalpr-daemon.init index 9b5dff8..eeb91c7 100644 --- a/distros/debian/openalpr-daemon.init +++ b/distros/debian/openalpr-daemon.init @@ -69,8 +69,8 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - [ ! -f $LOGFILE ] && touch $LOGFILE && chown $USER:$GROUP $LOGFILE \ - || return 2 + [ ! -f $LOGFILE ] && touch $LOGFILE && chown $USER:$GROUP $LOGFILE + start-stop-daemon --start --quiet --pidfile $PIDFILE \ --chuid $USER:$GROUP --exec $DAEMON --test > /dev/null \ || return 1