X-Git-Url: https://git.ralfj.de/osspd.git/blobdiff_plain/b383b1df20c4fc0f08db2f363ec9420ee9c981b1..81a7e1cb283f8c9bfad6176c33de7bfaa7302303:/debian/osspd.init diff --git a/debian/osspd.init b/debian/osspd.init index 0c7f5e8..77922b6 100644 --- a/debian/osspd.init +++ b/debian/osspd.init @@ -14,10 +14,10 @@ # Author: Ralf Jung PATH=/sbin:/usr/sbin:/bin:/usr/bin -DESC=" OSS Proxy Daemon" +DESC="OSS Proxy Daemon" NAME=osspd DAEMON=/usr/sbin/$NAME -DAEMON_ARGS="-f" # run in foreground, start-stop-daemon does the forking: required to let start-stop-daemon handle the pidfile +DAEMON_ARGS="--dsp-slave=/usr/lib/osspd/ossp-slave" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME @@ -25,8 +25,6 @@ SCRIPTNAME=/etc/init.d/$NAME [ -x "$DAEMON" ] || exit 0 # Define LSB log_* functions. -# Depend on lsb-base (>= 3.2-14) to ensure that this file is present -# and status_of_proc is working. . /lib/lsb/init-functions # @@ -41,6 +39,7 @@ do_start() # 2 if daemon could not be started start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile --exec $DAEMON --test > /dev/null \ || return 1 + # -f: run in foreground, start-stop-daemon does the forking - this is required to let start-stop-daemon handle the pidfile start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- -f \ $DAEMON_ARGS \ || return 2