Bug 180336 - [PATCH] sysutils/apcupsd: support multiple instances of apcupsd
Summary: [PATCH] sysutils/apcupsd: support multiple instances of apcupsd
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Ports Bugs (Mailing List)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-05 23:30 UTC by leres
Modified: 2017-05-24 13:01 UTC (History)
2 users (show)

See Also:


Attachments
patch.txt (1.26 KB, text/plain)
2013-07-05 23:30 UTC, leres
no flags Details
Patch to files/apcupsd.in (2.10 KB, patch)
2014-07-26 03:34 UTC, leres
no flags Details | Diff
Patch to files/apcupsd.in (2.09 KB, patch)
2014-07-31 07:10 UTC, leres
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description leres 2013-07-05 23:30:00 UTC
	It's possible to run multiple instances of apcupsd on a
	single host but the current rc.d script doesn't allow this.

Fix: The attached patch updates apcupsd.in to manage more than
	one apcupsd by adding a list of configuration files to
	/etc/rc.conf, e.g.:

	    apcupsd_enable="YES"
	    apcupsd_configs="
		/usr/local/etc/apcupsd/apcupsd.conf
		/usr/local/etc/apcupsd/apcupsd2.conf
		"
	    apcupsd_flags=""
Comment 1 Edwin Groothuis freebsd_committer 2013-07-05 23:30:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->itetcu

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 leres 2014-07-26 03:34:12 UTC
Created attachment 144988 [details]
Patch to files/apcupsd.in

Here's an updated patch that handles restart correctly.
Comment 3 leres 2014-07-31 07:10:43 UTC
Created attachment 145176 [details]
Patch to files/apcupsd.in

Fix to the last patch, %%ETCDIR%% already has /apcupsd in it.
Comment 4 Rene Ladan freebsd_committer 2017-02-27 20:49:21 UTC
Maintainer reset.
Comment 5 Eugene Grosbein freebsd_committer 2017-05-24 13:01:02 UTC
Is this PR still relevant?