projects
/
osspd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07dac43
)
fix pidfile
author
Ralf Jung
<post@ralfj.de>
Sat, 15 Sep 2012 11:23:10 +0000
(13:23 +0200)
committer
Ralf Jung
<post@ralfj.de>
Sat, 15 Sep 2012 11:23:10 +0000
(13:23 +0200)
debian/osspd.init
patch
|
blob
|
history
diff --git
a/debian/osspd.init
b/debian/osspd.init
index 7981c48c77ccd89463201a7ede09ac7825e7d8fc..0c7f5e80f5cfb6b501582941080f52d2b3a3b8e5 100644
(file)
--- a/
debian/osspd.init
+++ b/
debian/osspd.init
@@
-17,6
+17,7
@@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC=" OSS Proxy Daemon"
NAME=osspd
DAEMON=/usr/sbin/$NAME
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
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
@@
-38,9
+39,10
@@
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 -- \
+ start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- -f \
+ $DAEMON_ARGS \
|| return 2
}
|| return 2
}