Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 426956

Summary: net-analyzer/pmacct - /etc/init.d/pmacctd - allow multiple daemons to run concurrently
Product: Gentoo Linux Reporter: Jens Ott <jo>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: prepatched init-script
Patch for init-script

Description Jens Ott 2012-07-17 09:08:33 UTC
Created attachment 318410 [details]
prepatched init-script

Find attached a small patch and a prepatched /etc/init.d/pmacctd which allows symlinking to e.g. /etc/init.d/nfacctd or /etc/init.d/sfacctd for starting these kind of services.

Only change is that the original init-script wants to start /usr/sbin/pmacctd hardcoded and I replaced this hardcoded daemon with /usr/sbin/${SVCNAME}

Kind regards
Jens
Comment 1 Jens Ott 2012-07-17 09:09:20 UTC
Created attachment 318412 [details, diff]
Patch for init-script
Comment 2 Sergey Popov (RETIRED) gentoo-dev 2012-11-03 11:31:15 UTC
+  03 Nov 2012; Sergey Popov <pinkbyte@gentoo.org> files/pmacctd-init.d:
+  Improve initscript wrt bug #426956. Thanks to Jens Ott for patch