summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-04-23 13:46:56 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-04-23 13:46:56 +0000
commit7c0bf4a865dfc701c1899b9c1692b20c7d8a20c6 (patch)
treeef8470e2f9bb7f66cb5da192bb807cf0c961cb22 /net-nntp/hellanzb/files
parentVersion bump (diff)
downloadgentoo-2-7c0bf4a865dfc701c1899b9c1692b20c7d8a20c6.tar.gz
gentoo-2-7c0bf4a865dfc701c1899b9c1692b20c7d8a20c6.tar.bz2
gentoo-2-7c0bf4a865dfc701c1899b9c1692b20c7d8a20c6.zip
init script improvements by Vladimir Brik <no.hope@gmail.com>, bug #293222
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-nntp/hellanzb/files')
-rw-r--r--net-nntp/hellanzb/files/hellanzb.init9
1 files changed, 5 insertions, 4 deletions
diff --git a/net-nntp/hellanzb/files/hellanzb.init b/net-nntp/hellanzb/files/hellanzb.init
index 2c397a5e413f..be318d56c49d 100644
--- a/net-nntp/hellanzb/files/hellanzb.init
+++ b/net-nntp/hellanzb/files/hellanzb.init
@@ -14,9 +14,11 @@ start() {
eend 1
return 1
fi
+ if [ "${RC_CMD}" = "restart" ] ; then
+ sleep 1 # wait for socket to be released
+ fi
- export PATH="${PATH}:/opt/bin"
- start-stop-daemon --quiet --start -c ${HELLA_USER} \
+ start-stop-daemon --start -c ${HELLA_USER} \
-g ${HELLA_GROUP} --name hellanzb.py \
--exec /usr/bin/hellanzb.py -- \
-D -c ${HELLA_CONFIGFILE} ${HELLA_OPTS} &> /dev/null
@@ -25,8 +27,7 @@ start() {
stop() {
ebegin "Stopping hellanzb"
- start-stop-daemon --quiet --stop \
- --name hellanzb.py
+ /usr/bin/hellanzb.py shutdown &> /dev/null
eend $?
}