Re: [Nut-upsuser] CyberPower Value 2200E-GP
Citeren David Varley davidavar...@gmail.com: Arjen, now I'm a bit confused. In your script you are saying to shut down nut before issuing the upsdrvctl command to tell the UPS to start a delayed shutdown. Yes. But as shutting down nut causes the usbhid-ups driver to exit, I thought that would prevent the command being sent to the UPS? There are two ways to make a UPS kill it's output: - send a command to a backgrounded driver through upsd to tell it to shutdown (through the web interface or upscmd for instance) - starting the driver with '-k' flag on the command line (this is the method that upsdrvctl shutdown uses, see 'man 8 nutupsdrv') I know that if I just have the upsdrvctl shutdown command without telling the nut service to exit, the UPS shuts down after the 60 second delay. There will be two drivers fighting for control over the same UPS. This will not work at all for serial devices (since the port will be locked by the backgrounded driver). In case of USB connected ones, you might be lucky that the driver started with the '-k' flag will have control over the USB interface long enough to send the shutdown command, but this is not reliable. You should not take your chances here. I can understand adding the delay after giving the shutdown command and before stopping the services, but not the other way around. What am I missing here? You missed reading the docs/suspend-to-disk.txt file, where it is explained how you should set this up. If you want to know the details about this, start reading the remainder of the documents in docs/ before asking. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected) ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] CyberPower Value 2200E-GP
Arjen de Korte nut+us...@de-korte.org nut%2bus...@de-korte.org wrote: ... You missed reading the docs/suspend-to-disk.txt file, where it is explained how you should set this up. If you want to know the details about this, start reading the remainder of the documents in docs/ before asking. Best regards, Arjen Arjen, That document would be really useful to know about! I started out wanting to use this package, and I installed the packaged version for my OS in the usual way, and read all the man pages. No mention of suspend there. I read through the online documentation on the web site. Nothing there, either. So I downloaded the source to the latest stable release, and I read everything in the /docs folder. Nothing there, no suspend-to-disk.txt or any mention of suspend. It was only at this point that I finally made my first request to the list for help! Ok, now you told me there is a docs/suspend-to-disk.txt file, I looked further. In the development release files on the web site. No, not there. Can Google find it for me? No, it seems it hasn't been indexed anywhere either. Given all this, no doubt it is somewhere obvious, when you know where to look. But I was not planning to be a developer, just a user, and I have a huge stack of work in front of me and Xmas coming up, and I would really like to get this nailed down and move on, so if you could please point me to the required documentation I would be most grateful. Regards, David ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] CyberPower Value 2200E-GP
On Dec 18, 2010, at 7:21 AM, David Varley wrote: So I downloaded the source to the latest stable release, and I read everything in the /docs folder. Nothing there, no suspend-to- disk.txt or any mention of suspend. It appears that suspend-to-disk did not make it into the 2.4.3 tarball. Here it is in the new User Manual: http://buildbot.networkupstools.org/~buildbot/cayenne/docs/latest/website/output/docs/user-manual.chunked/ar01s06.html#_using_suspend_to_disk ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser