projects
/
osspd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the osspd-dbg doc folder a symlink again, as removing it would require maintaine...
[osspd.git]
/
debian
/
osspd.init
diff --git
a/debian/osspd.init
b/debian/osspd.init
index 7981c48c77ccd89463201a7ede09ac7825e7d8fc..77922b60ed28398aae6362405e98919ef9d63272 100644
(file)
--- a/
debian/osspd.init
+++ b/
debian/osspd.init
@@
-14,9
+14,10
@@
# Author: Ralf Jung <post@ralfj.de>
PATH=/sbin:/usr/sbin:/bin:/usr/bin
# Author: Ralf Jung <post@ralfj.de>
PATH=/sbin:/usr/sbin:/bin:/usr/bin
-DESC="
OSS Proxy Daemon"
+DESC="OSS Proxy Daemon"
NAME=osspd
DAEMON=/usr/sbin/$NAME
NAME=osspd
DAEMON=/usr/sbin/$NAME
+DAEMON_ARGS="--dsp-slave=/usr/lib/osspd/ossp-slave"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
@@
-24,8
+25,6
@@
SCRIPTNAME=/etc/init.d/$NAME
[ -x "$DAEMON" ] || exit 0
# Define LSB log_* functions.
[ -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
#
. /lib/lsb/init-functions
#
@@
-38,9
+37,11
@@
do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
- start-stop-daemon --start --
quiet --pidfile $PIDFILE
--exec $DAEMON --test > /dev/null \
+ start-stop-daemon --start --
background --quiet --pidfile $PIDFILE --make-pidfile
--exec $DAEMON --test > /dev/null \
|| return 1
|| return 1
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
+ # -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
}
|| return 2
}