richjunk at pacbell.net
2018-Jul-29 02:02 UTC
[Nut-upsuser] Can Not Get UPS to Turn Off After System Shutdown
Denny: Thank you. Problem solved. I switched SHUTDOWNCMD back to the default and added nut.powerfail to the shutdown runlevel. Now the UPS turns off after the system shutdown, if the shutdown is caused by lack of power going to the UPS. I checked and found the file sys-power:nut-2.7.4-r1:2018...log in /var/log/portage/elog/*. It did contain the message you pointed out. I should have checked that. Thanks again. R On 07/28/2018 11:03 AM, Denny Page wrote:> This really isn’t what you want. > > You should use a normal shutdown command on Gentoo: > > SHUTDOWNCMD "/sbin/shutdown -h +0” > > When you emerged the NUT package, you should have seen this message:...> * > * If you want apcupsd to power off your UPS when it > * shuts down your system in a power failure, you must > * add nut.powerfail to your shutdown runlevel: > * > * rc-update add nut.powerfail shutdown > > The thing in particular to pay attention to is the last line. > > Denny > > > >> On Jul 27, 2018, at 19:14, richjunk at pacbell.net wrote: >> >> This is the shutdown command I am using in /etc/nut/upsmon.conf: >> >> SHUTDOWNCMD "/usr/sbin/upsdrvctl shutdown Eaton5SC1500 ; /sbin/shutdown >> -h +0" >> >> The /etc/shutdown part works. The UPS name, Eaton5SC1500, is correct >> because the command 'upsc Eaton5SC1500' lists the current parameters of >> the ups.
Denny Page
2018-Jul-29 20:07 UTC
[Nut-upsuser] Can Not Get UPS to Turn Off After System Shutdown
Glad you got it working. Denny> On Jul 28, 2018, at 19:02, richjunk at pacbell.net wrote: > > Denny: > > Thank you. Problem solved. > > I switched SHUTDOWNCMD back to the default and added nut.powerfail to > the shutdown runlevel. Now the UPS turns off after the system shutdown, > if the shutdown is caused by lack of power going to the UPS. > > I checked and found the file sys-power:nut-2.7.4-r1:2018...log in > /var/log/portage/elog/*. It did contain the message you pointed out. > I should have checked that. > > Thanks again. > > R > > > On 07/28/2018 11:03 AM, Denny Page wrote: >> This really isn’t what you want. >> >> You should use a normal shutdown command on Gentoo: >> >> SHUTDOWNCMD "/sbin/shutdown -h +0” >> >> When you emerged the NUT package, you should have seen this message: > > ... > >> * >> * If you want apcupsd to power off your UPS when it >> * shuts down your system in a power failure, you must >> * add nut.powerfail to your shutdown runlevel: >> * >> * rc-update add nut.powerfail shutdown >> >> The thing in particular to pay attention to is the last line. >> >> Denny >> >> >> >>> On Jul 27, 2018, at 19:14, richjunk at pacbell.net wrote: >>> >>> This is the shutdown command I am using in /etc/nut/upsmon.conf: >>> >>> SHUTDOWNCMD "/usr/sbin/upsdrvctl shutdown Eaton5SC1500 ; /sbin/shutdown >>> -h +0" >>> >>> The /etc/shutdown part works. The UPS name, Eaton5SC1500, is correct >>> because the command 'upsc Eaton5SC1500' lists the current parameters of >>> the ups. > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
Charles Lepple
2018-Jul-29 21:16 UTC
[Nut-upsuser] Can Not Get UPS to Turn Off After System Shutdown
Denny, Thanks for providing some Gentoo-specific insight! Rich, Did you fix the root cause for this log message? Jul 26 19:08:57 run-public upsmon[4897]: FSD set on UPS Eaton5SC1500 at 127.0.0.1 failed: ERR ACCESS-DENIED If not, it is probably related to matching up the NUT master user/password defined in upsd.users, and referenced in upsmon.conf. Let us know if that is still coming up in the logs.