aboutsummaryrefslogtreecommitdiffstats
path: root/main/gross/grossd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-13 11:53:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-13 11:54:52 +0000
commitd7c0aed5ab029a04cd60356126d7feede60bfc0a (patch)
tree9a9d5bf67bc0abe19b6eb4b826e7af2f9d97545f /main/gross/grossd.initd
parent884a705f093f6c88d32b4e58bfe09cb7c26ebc45 (diff)
downloadaports-d7c0aed5ab029a04cd60356126d7feede60bfc0a.tar.bz2
aports-d7c0aed5ab029a04cd60356126d7feede60bfc0a.tar.xz
main/gross: init.d script fix
we stop the daemon using --exec rather than pidfile. This is to make sure that all threads (when using linuxthreads) are gone when restarting. fixes #130
Diffstat (limited to 'main/gross/grossd.initd')
-rw-r--r--main/gross/grossd.initd8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/gross/grossd.initd b/main/gross/grossd.initd
index 3d1c43d708..4d59b623a9 100644
--- a/main/gross/grossd.initd
+++ b/main/gross/grossd.initd
@@ -4,6 +4,7 @@ NAME="grossd"
DAEMON="/usr/sbin/$NAME"
DAEMON_USER="gross"
DAEMON_GROUP="gross"
+pidfile=/var/run/gross/$NAME.pid
depend() {
need net
@@ -20,16 +21,15 @@ check_config() {
start() {
check_config || return 1
ebegin "Starting ${NAME}"
- start-stop-daemon --start --quiet \
+ start-stop-daemon --start --quiet --pidfile ${pidfile} \
--exec ${DAEMON} -- \
- -p /var/run/gross/grossd.pid \
- -u ${DAEMON_USER} ${OPTS}
+ -p ${pidfile} -u ${DAEMON_USER} ${OPTS}
eend $?
}
stop() {
ebegin "Stopping ${NAME}"
- start-stop-daemon --stop --pidfile /var/run/gross/grossd.pid
+ start-stop-daemon --stop --exec ${DAEMON}
eend $?
}