From: | "Sergey Popov (pinkbyte)" <pinkbyte@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/pmacct/files: pmacctd-init.d |
Date: | Sat, 03 Nov 2012 11:30:54 |
Message-Id: | 20121103113036.E3E5B215FF@flycatcher.gentoo.org |
1 | pinkbyte 12/11/03 11:30:36 |
2 | |
3 | Modified: pmacctd-init.d |
4 | Log: |
5 | Improve initscript wrt bug #426956. Thanks to Jens Ott for patch |
6 | |
7 | (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit) |
8 | |
9 | Revision Changes Path |
10 | 1.7 net-analyzer/pmacct/files/pmacctd-init.d |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d?rev=1.7&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d?rev=1.7&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d?r1=1.6&r2=1.7 |
15 | |
16 | Index: pmacctd-init.d |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d,v |
19 | retrieving revision 1.6 |
20 | retrieving revision 1.7 |
21 | diff -u -r1.6 -r1.7 |
22 | --- pmacctd-init.d 13 Apr 2012 15:54:38 -0000 1.6 |
23 | +++ pmacctd-init.d 3 Nov 2012 11:30:36 -0000 1.7 |
24 | @@ -1,7 +1,7 @@ |
25 | #!/sbin/runscript |
26 | # Copyright 1999-2012 Gentoo Foundation |
27 | # Distributed under the terms of the GNU General Public License v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d,v 1.6 2012/04/13 15:54:38 jer Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d,v 1.7 2012/11/03 11:30:36 pinkbyte Exp $ |
30 | |
31 | PMACCTDDIR=${PMACCTDDIR:-/etc/pmacctd} |
32 | if [ ${SVCNAME} != "pmacctd" ]; then |
33 | @@ -25,13 +25,13 @@ |
34 | start() { |
35 | checkconfig || return 1 |
36 | ebegin "Starting ${SVCNAME}" |
37 | - start-stop-daemon --start --pidfile "${PMACCTDPID}" --exec /usr/sbin/pmacctd \ |
38 | + start-stop-daemon --start --pidfile "${PMACCTDPID}" --exec /usr/sbin/"${SVCNAME}" \ |
39 | -- -D -f "${PMACCTDCONF}" -F "${PMACCTDPID}" ${OPTS} |
40 | eend $? |
41 | } |
42 | |
43 | stop() { |
44 | ebegin "Stopping ${SVCNAME}" |
45 | - start-stop-daemon --stop --pidfile "${PMACCTDPID}" --exec /usr/sbin/pmacctd |
46 | + start-stop-daemon --stop --pidfile "${PMACCTDPID}" --exec /usr/sbin/"${SVCNAME}" |
47 | eend $? |
48 | } |