Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 910592

Summary: sys-power/nut-2.7.4-r8 nut.powerfail script aim to use apcupsd
Product: Gentoo Linux Reporter: xdarma <aletrev>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: UNCONFIRMED ---    
Severity: normal CC: prometheanfire, proxy-maint, web
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.