Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426956 - net-analyzer/pmacct - /etc/init.d/pmacctd - allow multiple daemons to run concurrently
Summary: net-analyzer/pmacct - /etc/init.d/pmacctd - allow multiple daemons to run con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-07-17 09:08 UTC by Jens Ott
Modified: 2012-11-03 11:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
prepatched init-script (pmacctd,936 bytes, text/plain)
2012-07-17 09:08 UTC, Jens Ott
Details
Patch for init-script (pmacct-init.patch,638 bytes, patch)
2012-07-17 09:09 UTC, Jens Ott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 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