I'm probably spending WAY too much time on this question, but.... If the goal is just to perform a clean shutdown, and the power might cycle a few more times before coming back completely, then shutdown.stayoff might make more sense. A human could come along and manually power it back on. ...by plugging the PC into a new power source? Because the UPS outlet would be shut off, so hitting the power button on the PC won't do anything. I'm not aware of buttons on a UPS that tells it to turn its outlet back on, but then my own UPSes have always been fairly dumb power units. Perhaps the newer smarter ones allow for easy turning on and off of the outlet via physical console? In that case, I can see the usefulness of .stayoff. I suspect a lot of people who want to maximize uptime would want the UPS to wait a bit for the battery to charge ("battery.charge.restart" -> "Minimum battery level for UPS restart after power-off") before powering the load back on. Ah, that's a good idea. Something new to implement today! Sincerely, Rob Groner Software Engineer RTD Embedded Technologies, Inc. ISO9001 and AS9100 Certified Ph: 814-234-8087 www.rtd.com<http://www.rtd.com/> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150323/a7a96364/attachment.html>
On Mar 23, 2015, at 8:25 AM, Rob Groner <rgroner at RTD.com> wrote:> If the goal is just to perform a clean shutdown, and the power might cycle a few more times before coming back completely, then shutdown.stayoff might make more sense. A human could come along and manually power it back on. > > ?by plugging the PC into a new power source? Because the UPS outlet would be shut off, so hitting the power button on the PC won?t do anything. I?m not aware of buttons on a UPS that tells it to turn its outlet back on, but then my own UPSes have always been fairly dumb power units.I meant that a human could power the UPS back on. Nearly all of the UPSes I have worked on have momentary power buttons (either toggle on/off, or a pair of on and off buttons). -- Charles Lepple clepple at gmail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150323/06b04516/attachment.html>
Ok, so the reason I keep asking about this is in case I have to actually implement this in our UPS. I meant that a human could power the UPS back on. Nearly all of the UPSes I have worked on have momentary power buttons (either toggle on/off, or a pair of on and off buttons). So, when a power-off-stay-off comes through, then the UPS *itself* shuts down as well, and essentially goes into a soft-off that won't respond to resumed AC power from the wall outlet? And when the UPS *does* get powered back on (via a button press), then the power outlet for the PC will come back on as well.... I see. So the UPS basically has an "ignore the wall power" flag that gets set when you tell it stayoff, and for poweroff-return, it wouldn't ignore wall power, and so would come back on when AC is restored. I understand now (I think). Thank you for your patience in explaining. Sincerely, Rob Groner Software Engineer RTD Embedded Technologies, Inc. ISO9001 and AS9100 Certified Ph: 814-234-8087 www.rtd.com<http://www.rtd.com/> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20150323/5175564f/attachment.html>