Update init

This commit is contained in:
Simon Shi
2023-08-19 22:57:37 +08:00
committed by GitHub
parent 4d0abaffd3
commit 805c3e68b7

6
init
View File

@ -16,8 +16,8 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC=VLMCSD # Introduce a short description here
NAME=vlmcsd # Introduce the short server's name here
DAEMON=/usr/bin/vlmcsd # Introduce the server's location here
DAEMON_ARGS="" # Arguments to run the daemon with
DAEMON=/usr/bin/vlmcsd # Introduce the server's location here
DAEMON_ARGS="-i /etc/vlmcsd/vlmcsd.ini -j /etc/vlmcsd/vlmcsd.kmd -l syslog -D" # Arguments to run the daemon with
PIDFILE=/var/run/$NAME/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
@ -53,7 +53,7 @@ do_start()
# 1 if daemon was already running
# 2 if daemon could not be started
start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON -- \
-i /etc/vlmcsd/vlmcsd.ini -D \
$DAEMON_ARGS \
|| return 2
}