X-Git-Url: https://git.ralfj.de/osspd.git/blobdiff_plain/c079c1c9997404e5063027dde3caa48da90316ba..262a2bdd7b5298a3c2ef7127c4e7ececef84b2e7:/debian/osspd.init diff --git a/debian/osspd.init b/debian/osspd.init index c95885a..8669c76 100644 --- a/debian/osspd.init +++ b/debian/osspd.init @@ -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 @@ -32,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