diff options
author | Alexis Ballier <aballier@gentoo.org> | 2010-04-23 13:46:56 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2010-04-23 13:46:56 +0000 |
commit | 7c0bf4a865dfc701c1899b9c1692b20c7d8a20c6 (patch) | |
tree | ef8470e2f9bb7f66cb5da192bb807cf0c961cb22 /net-nntp | |
parent | Version bump (diff) | |
download | gentoo-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')
-rw-r--r-- | net-nntp/hellanzb/ChangeLog | 5 | ||||
-rw-r--r-- | net-nntp/hellanzb/files/hellanzb.init | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/net-nntp/hellanzb/ChangeLog b/net-nntp/hellanzb/ChangeLog index 243eb0cc684d..b3b295965182 100644 --- a/net-nntp/hellanzb/ChangeLog +++ b/net-nntp/hellanzb/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-nntp/hellanzb # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/ChangeLog,v 1.15 2010/04/23 13:36:52 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/ChangeLog,v 1.16 2010/04/23 13:46:56 aballier Exp $ + + 23 Apr 2010; Alexis Ballier <aballier@gentoo.org> files/hellanzb.init: + init script improvements by Vladimir Brik <no.hope@gmail.com>, bug #293222 23 Apr 2010; Alexis Ballier <aballier@gentoo.org> hellanzb-0.13-r7.ebuild, +files/hellanzb-0.13-python_26_fixes.patch, 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 $? } |