no way to set options to daemon such as kill-on-powerfail
Bug #462792 reported by
Dmitry Ljautov
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/
APCUPSDOPTIONS=
And put options to start-stop-daemon /etc/init.
start-stop-daemon start quiet exec $DAEMON -- $APCUPSDOPTIONS
Works good for me.
To post a comment you must log in.
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.