found 541660 3.14.12-1.1 quit Having the root filesystem be read-only is getting to be a pretty common case and has been solved for most situations. Why hasn't the apcupsd packaged had this issue fixed?
Might I suggest something like: --------8<-----------------------------------------------------8<-------- --- ./debian/local/ups-monitor.orig 2017-10-25 09:38:38.685912329 -0700 +++ ./debian/local/ups-monitor 2017-10-25 11:37:01.884505010 -0700 @@ -20,7 +20,10 @@ case "$1" in poweroff | killpower) - if [ -f /etc/apcupsd/powerfail ]; then + faildir=$(grep -e^PWRFAILDIR /etc/apcupsd/apcupsd.conf) + faildir="${faildir#PWRFAILDIR }" + + if [ -f "${faildir:=/etc/apcupsd}/powerfail" ]; then echo "" echo -n "apcupsd: Ordering UPS to kill power... " /etc/apcupsd/apccontrol killpower --------8<-----------------------------------------------------8<-------- --- apcupsd.orig 2017-10-25 11:45:46.467115995 -0700 +++ apcupsd 2017-10-25 11:46:41.671811263 -0700 @@ -36,7 +36,10 @@ start) echo -n "Starting $DESC: " - rm -f /etc/apcupsd/powerfail + faildir=$(grep -e^PWRFAILDIR /etc/apcupsd/apcupsd.conf) + faildir="${faildir#PWRFAILDIR }" + + rm -f "${faildir:=/etc/apcupsd}/powerfail" if [ "`pidof apcupsd`" = "" ] then --------8<-----------------------------------------------------8<-------- Then need to default to "PWRFAILDIR /run" (appears /run is NOT unmounted during K07umountfs). -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | ehem+sig...@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445