UPS nut kill inverter: offdelay ignored
Dear All,
I am running Slackware64-14.1(Linux marto 3.10.17 #1 SMP Fri Feb 14 16:39:21 CST 2014 x86_64 Intel(R) Pentium(R) CPU G3250 @ 3.20GHz GenuineIntel GNU/Linux) and nut package nut-2.6.5-x86_64-1_SBo, buit from source using the build script http://slackbuilds.org/repository/14.1/system/nut/ In the README.Slackware it is suggested that the commands for killing the inverter be placed in certain positions in rc.6 after remounting the root file system read only. In my configuration, however, the /usr and /root directories are on different partitions, so I added these commands after turning off swap and before unmounting the local file systems, like this: # rc.6 ... # Turn off swap: echo "Turning off swap." /sbin/swapoff -a /bin/sync # Turn off UPS's power if [ -x /usr/libexec/nut/nut_restart_udev ]; then . /usr/libexec/nut/nut_restart_udev fi if [ -x /usr/libexec/nut/nut_kill_inverter ]; then . /usr/libexec/nut/nut_kill_inverter fi echo "Unmounting local file systems." /bin/umount -v -a -t no,proc,sysfs ... I also set in the ups.conf file that the UPS should be killed 3 minutes after issuing the kill inverter command: # ups.conf [Eaton5E650iUSB] driver = usbhid-ups port = auto desc = "UPS Eaton5E650iUSBDIN" offdelay=180 ondelay=200 On power failure the shutdown process reaches the kill inverter commands in rc.6, issues them and in several seconds shuts down the UPS, obviously ignoring the offdelay setting. Furthermore, it does not proceed to issue the remaining rc.6 commands, but seems to hang at shutting down the UPS. Do You have any suggestions? Thank You very much for Your attention. Best regards, Martin PS: Here is some diagnostic info: Code:
upsc Eaton5E650iUSB at localhost |
I found in documentation, note use UPSRW tool for manage variables
|
All times are GMT -5. The time now is 05:17 PM. |