APC UPS for Home and Office Forum
Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 03:38 AM . Last Modified: 2024-03-27 02:14 AM
Hi everyone,
Just picked up a BR1500G, and had hoped to use it to shutdown my linux server and then run my cable modem and IP phone box until either the battery runs out or the power comes back on. Unfortunately, because I've configured it to shut down my server, the UPS then waits a couple minutes and then shuts itself off (I found a post on here describing this as the designed behavior). Is there any way I can prevent it from shutting off after it shuts down the server?
I specifically purchased this large of a UPS hoping to get the most run time out of the phone in the event of a power outage. I had hoped an orderly shut down of the server would be a nice bonus, but it appears that may not be the case. I've set it up to shut down the server after 60 seconds of no power. About 2 minutes later the UPS shuts off....I'd prefer it stay on providing power to the cable modem and phone box.
Is there anything I can do to configure it to do this? I really don't want two UPS's for this. 😞
Thanks,
Gary
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 03:38 AM . Last Modified: 2024-03-27 02:14 AM
Well, I did a little Googling, and it appears I don't do that in apcupsd.conf (which explains why I didn't find it there). I found the following guidance online:
Here's a couple methods:
1. Edit apccontrol:
case "$1" in
killpower)
# echo "Apccontrol doing: ${APCUPSD} --killpower on UPS ${2}"
# sleep 10
# ${APCUPSD} --killpower
# echo "Apccontrol has done: ${APCUPSD} --killpower on UPS ${2}"
| ${WALL}
;;
Comment out those 4 lines (like above).
2. Edit your OS shutdown script preventing it from running apccontrol
killpower. You didn't specify an OS/distro so can't say for sure which
file to edit (none if Windows).
Is there one method over the other that is preferable? I looked in my halt script, and I see the following lines
# See if we need to cut the power.
if [ "$INIT_HALT" = "POWEROFF" ] && [ -x /etc/init.d/ups-monitor ]
then
/etc/init.d/ups-monitor poweroff
fi
I could just comment those lines out. Just not sure which one is preferable. Appreciate any input.
Thanks,
Gary
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 03:38 AM . Last Modified: 2024-03-27 02:14 AM
Gary,
What shutdown software are you using? If you are using APCUPSD you can configure the application not to power down the UPS. The only issue with doing so is the computer will not restart automatically. Once the OS is powered down you will have to manually start it.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 03:38 AM . Last Modified: 2024-03-27 02:14 AM
Excellent! Yes, I am using APCUPSD. I will look through the apcupsd.conf file tonight to see if I can find the setting, but if you could point me in the right direction I would be really greatful.
I am fine with it not starting back up automatically. This box is mostly used to back up my other PCs and stream media. I have it set up with WOL, so I am fine doing that once the power is back on.
Thanks,
Gary
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 03:38 AM . Last Modified: 2024-03-27 02:14 AM
Well, I did a little Googling, and it appears I don't do that in apcupsd.conf (which explains why I didn't find it there). I found the following guidance online:
Here's a couple methods:
1. Edit apccontrol:
case "$1" in
killpower)
# echo "Apccontrol doing: ${APCUPSD} --killpower on UPS ${2}"
# sleep 10
# ${APCUPSD} --killpower
# echo "Apccontrol has done: ${APCUPSD} --killpower on UPS ${2}"
| ${WALL}
;;
Comment out those 4 lines (like above).
2. Edit your OS shutdown script preventing it from running apccontrol
killpower. You didn't specify an OS/distro so can't say for sure which
file to edit (none if Windows).
Is there one method over the other that is preferable? I looked in my halt script, and I see the following lines
# See if we need to cut the power.
if [ "$INIT_HALT" = "POWEROFF" ] && [ -x /etc/init.d/ups-monitor ]
then
/etc/init.d/ups-monitor poweroff
fi
I could just comment those lines out. Just not sure which one is preferable. Appreciate any input.
Thanks,
Gary
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 03:38 AM . Last Modified: 2024-03-27 02:14 AM
That seems more a question for the apcupsd folks. My guess is that #1 is fine and if taking approach #2, maybe look deeper to find the actual call to apccontrol... perhaps in /etc/init.d/ups-monitor.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-28 03:38 AM . Last Modified: 2024-03-27 02:14 AM
As a follow up, I went with approach number 1 and edited apccontrol, commenting out the four lines shown above. I simulated a power outage and everything worked the way I wanted it to.
Thanks,
Gary
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.