finish up changelog for release
[osspd.git] / debian / osspd.init
index 40d080a376ded931fef93d697f389a9d44c3b35b..8669c76069753ff4a6689b6cfdcce4f48b493bfd 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
 
@@ -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
 
 #
@@ -34,13 +32,13 @@ SCRIPTNAME=/etc/init.d/$NAME
 #
 do_start()
 {
-       modprobe cuse # make sure the cuse module is loaded
        # Return
        #   0 if daemon has been started
        #   1 if daemon was already running
        #   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