From 95e00d4d71ff21d81b24ee99112abe9de369b2d1 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sun, 9 Jan 2022 15:02:01 +0100 Subject: [PATCH] apcupsd wip --- bundles/apcupsd/README.md | 10 ++++++++++ bundles/apcupsd/files/apcupsd.conf | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 bundles/apcupsd/README.md diff --git a/bundles/apcupsd/README.md b/bundles/apcupsd/README.md new file mode 100644 index 0000000..13d10c5 --- /dev/null +++ b/bundles/apcupsd/README.md @@ -0,0 +1,10 @@ +http://www.apcupsd.org/manual/manual.html#power-down-during-shutdown + +- onbattery: power lost +- battery drains +- when BATTERYLEVEL or MINUTES threshold is reached, server is shut down and + the ups is issued to cut the power +- when the mains power returns, the ups will reinstate power to the server +- the server will reboot + +NOT IMPLEMENTED diff --git a/bundles/apcupsd/files/apcupsd.conf b/bundles/apcupsd/files/apcupsd.conf index b3ca5db..e15f966 100644 --- a/bundles/apcupsd/files/apcupsd.conf +++ b/bundles/apcupsd/files/apcupsd.conf @@ -146,12 +146,12 @@ ONBATTERYDELAY 6 # If during a power failure, the remaining battery percentage # (as reported by the UPS) is below or equal to BATTERYLEVEL, # apcupsd will initiate a system shutdown. -BATTERYLEVEL 5 +BATTERYLEVEL 10 # If during a power failure, the remaining runtime in minutes # (as calculated internally by the UPS) is below or equal to MINUTES, # apcupsd, will initiate a system shutdown. -MINUTES 3 +MINUTES 5 # If during a power failure, the UPS has run on batteries for TIMEOUT # many seconds or longer, apcupsd will initiate a system shutdown.