From: | "Alexis Ballier (aballier)" <aballier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-nntp/hellanzb/files: hellanzb.init |
Date: | Fri, 23 Apr 2010 13:47:01 |
Message-Id: | 20100423134657.04A2D317E3@corvid.gentoo.org |
1 | aballier 10/04/23 13:46:56 |
2 | |
3 | Modified: hellanzb.init |
4 | Log: |
5 | init script improvements by Vladimir Brik <no.hope@×××××.com>, bug #293222 |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.4 net-nntp/hellanzb/files/hellanzb.init |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/hellanzb/files/hellanzb.init?rev=1.4&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/hellanzb/files/hellanzb.init?rev=1.4&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-nntp/hellanzb/files/hellanzb.init?r1=1.3&r2=1.4 |
14 | |
15 | Index: hellanzb.init |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/net-nntp/hellanzb/files/hellanzb.init,v |
18 | retrieving revision 1.3 |
19 | retrieving revision 1.4 |
20 | diff -u -r1.3 -r1.4 |
21 | --- hellanzb.init 22 Apr 2008 12:17:23 -0000 1.3 |
22 | +++ hellanzb.init 23 Apr 2010 13:46:56 -0000 1.4 |
23 | @@ -14,9 +14,11 @@ |
24 | eend 1 |
25 | return 1 |
26 | fi |
27 | + if [ "${RC_CMD}" = "restart" ] ; then |
28 | + sleep 1 # wait for socket to be released |
29 | + fi |
30 | |
31 | - export PATH="${PATH}:/opt/bin" |
32 | - start-stop-daemon --quiet --start -c ${HELLA_USER} \ |
33 | + start-stop-daemon --start -c ${HELLA_USER} \ |
34 | -g ${HELLA_GROUP} --name hellanzb.py \ |
35 | --exec /usr/bin/hellanzb.py -- \ |
36 | -D -c ${HELLA_CONFIGFILE} ${HELLA_OPTS} &> /dev/null |
37 | @@ -25,8 +27,7 @@ |
38 | |
39 | stop() { |
40 | ebegin "Stopping hellanzb" |
41 | - start-stop-daemon --quiet --stop \ |
42 | - --name hellanzb.py |
43 | + /usr/bin/hellanzb.py shutdown &> /dev/null |
44 | eend $? |
45 | } |