Marc Rechté
2007-Mar-22 15:35 UTC
[Nut-upsuser] Is newhidups driver still in memory just before o/s halt ?
Hi, I have set-up the ups shutdown feature provided by Red Hat /etc/rc.d/init.d/halt script, which will issue a "upsdrvctl shutdown" command just before powering off the system. It appears that this command fails as if the driver is not available. I wonder whether the usb driver / stack is still available at this very late stage ? If not available then does it mean one cannot shutdown the ups ? Thanks to all.
Charles Lepple
2007-Mar-22 16:20 UTC
[Nut-upsuser] Is newhidups driver still in memory just before o/s halt ?
On 3/22/07, Marc Recht? <marc2@rechte.fr> wrote:> Hi, > > I have set-up the ups shutdown feature provided by Red Hat > /etc/rc.d/init.d/halt script, which will issue a "upsdrvctl shutdown" > command just before powering off the system. > > It appears that this command fails as if the driver is not available. > > I wonder whether the usb driver / stack is still available at this very > late stage ?The stack is still available, but the USB filesystem (/proc/bus/usb or /dev/bus/usb) might have been unmounted. It is generally safe to remount it, since it does not map to persistent storage. Which RedHat version/distro are you working with? -- - Charles Lepple
Charles Lepple
2007-Mar-23 22:32 UTC
[Nut-upsuser] Is newhidups driver still in memory just before o/s halt ?
On 3/23/07, Marc Recht? <marc2@rechte.fr> wrote:> Hello Wolfy, > > This is what I wanted to avoid: tempering with Red Hat supplied files, > especially these scripts may be tricky and also are overwritten by > initscripts updates. I think that for the time being I will not not > shutdown the UPS (though this was working with a serial driver).You might be able to set a longer timeout and do the shutdown as a K99 init.d script. (Or K00, I forget how the shutdown order goes.) Also, I think that certain scripts in /etc are marked as config files, and will not be overwriiten (the rpm program just creates a .rpm-new file or something) -- - Charles Lepple
Apparently Analagous Threads
- upsmon keeps broadcasting on battery / on power (driver is newhidups)
- upsmon keeps broadcasting on battery / on power (driver is newhidups)
- Cannot move /bin/upsdrvctl to /sbin
- the future libusb interface for newhidups
- Problems with newhidups and Smart-UPS 750