Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 221291 Details for
Bug 306837
net-analyzer/pmacct modification to init script to allow multiple instances
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposal of patch for init script
init.patch (text/plain), 1.48 KB, created by
Marcin Mirosław
on 2010-02-26 11:19:21 UTC
(
hide
)
Description:
proposal of patch for init script
Filename:
MIME Type:
Creator:
Marcin Mirosław
Created:
2010-02-26 11:19:21 UTC
Size:
1.48 KB
patch
obsolete
>--- pmacctd.orig 2010-02-26 10:44:10.580590350 +0100 >+++ pmacctd 2010-02-26 12:17:06.272594554 +0100 >@@ -1,29 +1,37 @@ > #!/sbin/runscript >-# Copyright 1999-2004 Gentoo Foundation >+# Copyright 1999-2010 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.4 2009/06/01 09:48:41 pva Exp $ > >+PMACCTDDIR=${PMACCTDDIR:-/etc/pmacct} >+if [ ${SVCNAME} != "pmacctd" ]; then >+ PMACCTDPID="/var/run/${SVCNAME}.pid" >+else >+ PMACCTDPID="/var/run/pmacctd.pid" >+fi >+PMACCTDCONF="${PMACCTDDIR}/${SVCNAME}.conf" >+ > depend() { > need net > } > > checkconfig() { >- if [ ! -e /etc/pmacctd.conf ] ; then >- eerror "You need an /etc/pmacctd.conf file to run pmacctd" >+ if [ ! -e ${PMACCTDCONF} ] ; then >+ eerror "You need an ${PMACCTDCONF} file to run pmacctd" > 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 "${PMACCTDPID}" --exec /usr/sbin/pmacctd \ >+ -- -D -f "${PMACCTDCONF}" -F "${PMACCTDPID}" ${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 "${PMACCTDPID}" --exec /usr/sbin/pmacctd > eend $? > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 306837
: 221291