mirror of
https://github.com/Wind4/vlmcsd-debian.git
synced 2025-03-14 10:17:14 +00:00
Update init
This commit is contained in:
6
init
6
init
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user