mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 02:26:53 +08:00
Removed return on logfile creation in init script that was causing service not to start
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user