Manage the currently used osspd slave via update-alternatives
[osspd.git] / debian / osspd.init
index c95885a58b216c308557a7e003ac0e78ae7af702..77922b60ed28398aae6362405e98919ef9d63272 100644 (file)
@@ -17,7 +17,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
 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
 
@@ -39,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