diff options
author | 2012-11-03 11:30:41 +0000 | |
---|---|---|
committer | 2012-11-03 11:30:41 +0000 | |
commit | 4927098d5ff9f0347f2b5b31ab93776b934e3c9c (patch) | |
tree | ccd67440b4c84f91cd23af875560eb6a48983082 /net-analyzer/pmacct/files | |
parent | Keyword ~arm (diff) | |
download | historical-4927098d5ff9f0347f2b5b31ab93776b934e3c9c.tar.gz historical-4927098d5ff9f0347f2b5b31ab93776b934e3c9c.tar.bz2 historical-4927098d5ff9f0347f2b5b31ab93776b934e3c9c.zip |
Improve initscript wrt bug #426956. Thanks to Jens Ott for patch
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/pmacct/files')
-rw-r--r-- | net-analyzer/pmacct/files/pmacctd-init.d | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net-analyzer/pmacct/files/pmacctd-init.d b/net-analyzer/pmacct/files/pmacctd-init.d index fe8903e52acc..2de867d99fbd 100644 --- a/net-analyzer/pmacct/files/pmacctd-init.d +++ b/net-analyzer/pmacct/files/pmacctd-init.d @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d,v 1.6 2012/04/13 15:54:38 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d,v 1.7 2012/11/03 11:30:36 pinkbyte Exp $ PMACCTDDIR=${PMACCTDDIR:-/etc/pmacctd} if [ ${SVCNAME} != "pmacctd" ]; then @@ -25,13 +25,13 @@ checkconfig() { start() { checkconfig || return 1 ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --pidfile "${PMACCTDPID}" --exec /usr/sbin/pmacctd \ + start-stop-daemon --start --pidfile "${PMACCTDPID}" --exec /usr/sbin/"${SVCNAME}" \ -- -D -f "${PMACCTDCONF}" -F "${PMACCTDPID}" ${OPTS} eend $? } stop() { ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --pidfile "${PMACCTDPID}" --exec /usr/sbin/pmacctd + start-stop-daemon --stop --pidfile "${PMACCTDPID}" --exec /usr/sbin/"${SVCNAME}" eend $? } |