Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910592 - sys-power/nut-2.7.4-r8 nut.powerfail script aim to use apcupsd
Summary: sys-power/nut-2.7.4-r8 nut.powerfail script aim to use apcupsd
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-20 15:48 UTC by xdarma
Modified: 2023-07-20 17:31 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xdarma 2023-07-20 15:48:59 UTC
In /etc/init.d/nut.powerfail script is used /sbin/apcupsd as option to power off the machine but apcupsd is not part of sys-power/nut package.
The original part of script is:
elif [ -f /etc/apcupsd/powerfail ]; then
        UPS_CTL=/sbin/apcupsd
        UPS_POWERDOWN="${UPS_CTL} --killpower"

that I have changed in:
elif [ -f /etc/killpower -o -f /etc/nut/killpower ]; then
        UPS_CTL=/usr/sbin/upsmon
        UPS_POWERDOWN="${UPS_CTL} -c fsd"

And works on my machine.