Charles, When sorting out the library problem for shutdown, please also keep in mind that the shutdown scripts (at least those that I have encountered so far) insist on unmounting /dev/usb. This requires that libusb does not rely on its presence to do the reconnection for the shutdown. I don't know if this is a part of the definition of the functionality of libusb and if it can safely be relied upon. AG -- ---------------------------------------------------------------------- Alfred Ganz alfred-ganz:at:agci.com AG Consulting, Inc. (203) 624-9667 440 Prospect Street # 11 New Haven, CT 06511 ----------------------------------------------------------------------
Charles Lepple
2009-Aug-08 14:43 UTC
[Nut-upsdev] /sbin/upsdrvctl unable to shutdown UPS ...
On Aug 8, 2009, at 9:51 AM, Alfred Ganz wrote:> Charles, > > When sorting out the library problem for shutdown, please also keep in > mind that the shutdown scripts (at least those that I have encountered > so far) insist on unmounting /dev/usb. This requires that libusb does > not rely on its presence to do the reconnection for the shutdown. I > don't > know if this is a part of the definition of the functionality of > libusb > and if it can safely be relied upon.Alfred, that does pose a problem - /dev/usb is required by libusb on Linux. I wonder if the hiddev nodes in /dev still exist at that point? - Charles
Daniel O'Connor
2009-Aug-08 22:54 UTC
[Nut-upsdev] /sbin/upsdrvctl unable to shutdown UPS ...
On Sat, 8 Aug 2009, Alfred Ganz wrote:> Charles, > > When sorting out the library problem for shutdown, please also keep > in mind that the shutdown scripts (at least those that I have > encountered so far) insist on unmounting /dev/usb. This requires that > libusb does not rely on its presence to do the reconnection for the > shutdown. I don't know if this is a part of the definition of the > functionality of libusb and if it can safely be relied upon.One option would be to use delayed shutdown and try and guess a good grace delay. This is the way you need to do it in FreeBSD as the disks aren't remounted read only after shutdown. In practise it works OK :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: This is a digitally signed message part. URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20090809/2530e3bd/attachment.pgp>