mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 11:07:00 +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
|
# 0 if daemon has been started
|
||||||
# 1 if daemon was already running
|
# 1 if daemon was already running
|
||||||
# 2 if daemon could not be started
|
# 2 if daemon could not be started
|
||||||
[ ! -f $LOGFILE ] && touch $LOGFILE && chown $USER:$GROUP $LOGFILE \
|
[ ! -f $LOGFILE ] && touch $LOGFILE && chown $USER:$GROUP $LOGFILE
|
||||||
|| return 2
|
|
||||||
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
||||||
--chuid $USER:$GROUP --exec $DAEMON --test > /dev/null \
|
--chuid $USER:$GROUP --exec $DAEMON --test > /dev/null \
|
||||||
|| return 1
|
|| return 1
|
||||||
|
Reference in New Issue
Block a user