no way to set options to daemon such as kill-on-powerfail

Bug #462792 reported by Dmitry Ljautov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apcupsd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apcupsd

I wonder is there ubuntu way to hibernate APC UPS on powerfail ?

I'd like to add options (listed in `apcupsd -h`) to apcupsd daemon.
I need --kill-on-powerfail to apcupsd to hibernate UPS on powerfail.

For example I'd like to have APCUPSDOPTIONS (may be blank by default) in /etc/default/apcupsd
APCUPSDOPTIONS="--kill-on-powerfail"

And put options to start-stop-daemon /etc/init.d/apcupsd:
start-stop-daemon start quiet exec $DAEMON -- $APCUPSDOPTIONS

Works good for me.

Revision history for this message
Dmitry Ljautov (dljautov) wrote :

In /etc/default/halt setup HALT=halt, in bios setup option to start after power fail.

--kill-on-powerfail option helps when power came back while ubuntu shutdown on power fail by apcupsd. UPS will power off (and then on) server anyway (even if power already came back) for server rebooting (without --kill-on-powerfail server halt forever) IMHO it's rather important.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.