diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-10-14 10:00:25 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-10-14 10:00:43 +0000 |
commit | d2ff64bc9d3627581614262bcccbd9d754b40e90 (patch) | |
tree | 4ae8687e01829cb534602a6c7b1a148ff65faa71 /testing/pmacct/pmacct.initd | |
parent | 62beae3c1b5f7931b683229f18b707a1967e8f4b (diff) |
testing/pmacct: default config added for all daemons and single init provided
Diffstat (limited to 'testing/pmacct/pmacct.initd')
-rw-r--r-- | testing/pmacct/pmacct.initd | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testing/pmacct/pmacct.initd b/testing/pmacct/pmacct.initd index 1985b997ac5..e6e6a3f6516 100644 --- a/testing/pmacct/pmacct.initd +++ b/testing/pmacct/pmacct.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-analyzer/pmacct/files/pmacctd-init.d,v 1.4 2009/06/01 09:48:41 pva Exp $ +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-analyzer/pmacct/files/$SVCNAME-init.d,v 1.4 2009/06/01 09:48:41 pva Exp $ depend() { need net @@ -9,22 +9,22 @@ depend() { } checkconfig() { - if [ ! -e /etc/pmacctd.conf ] ; then - eerror "You need an /etc/pmacctd.conf file to run pmacctd" + if [ ! -e /etc/$SVCNAME.conf ] ; then + eerror "You need an /etc/$SVCNAME.conf file to run $SVCNAME" return 1 fi } start() { checkconfig || return 1 - ebegin "Starting pmacctd" - start-stop-daemon --start --pidfile /var/run/pmacctd.pid --exec /usr/sbin/pmacctd \ - -- -D -f /etc/pmacctd.conf -F /var/run/pmacctd.pid ${OPTS} + ebegin "Starting $SVCNAME" + start-stop-daemon --start --pidfile /var/run/$SVCNAME.pid --exec /usr/sbin/$SVCNAME \ + -- -D -f /etc/$SVCNAME.conf -F /var/run/$SVCNAME.pid ${OPTS} eend $? } stop() { - ebegin "Stopping pmacctd" - start-stop-daemon --stop --pidfile /var/run/pmacctd.pid --exec /usr/sbin/pmacctd + ebegin "Stopping $SVCNAME" + start-stop-daemon --stop --pidfile /var/run/$SVCNAME.pid --exec /usr/sbin/$SVCNAME eend $? } |