Actions
Bug #10845
openapcupsd doesn't stop when not enabled
Status:
New
Priority:
Normal
Assignee:
-
Category:
apcupsd
Target version:
-
Start date:
08/20/2020
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
2.4.5-p1
Affected Plus Version:
Affected Architecture:
Description
I'm running pfSense 2.4.5-p1 and apcupsd 0.3.91_8
Attempts to stop apcupsd fail.
To reproduce:
- visit /pkg_edit.php?xml=apcupsd.xml
- uncheck Enable APC UPS Daemon service.
- click on Save
Before doing the above, I saw:
[2.4.5-RELEASE][admin@bast.int.unixathome.org]/root: ps auwwx | grep apc root 70491 0.0 0.2 13008 3844 - Ss 16:01 0:00.14 /usr/local/sbin/apcupsd root 10835 0.0 0.1 6560 2292 0 S+ 16:02 0:00.00 grep apc
After hitting save, I run the above command repeatedly and see:
[2.4.5-RELEASE][admin@bast.int.unixathome.org]/root: ps auwwx | grep apc root 11520 1.8 0.1 6976 2724 - S 16:02 0:00.01 /bin/sh /usr/local/etc/rc.d/apcupsd.sh stop root 12526 0.0 0.2 7284 3704 0 R+ 16:02 0:00.00 grep apc (tcsh) root 13832 0.0 0.1 6976 2728 - S 16:02 0:00.00 /bin/sh /usr/local/etc/rc.d/apcupsd.sh restart 2 root 14829 0.0 0.1 6560 2292 0 S+ 16:02 0:00.00 grep apc [2.4.5-RELEASE][admin@bast.int.unixathome.org]/root: ps auwwx | grep apc root 18890 0.0 0.2 10320 3676 - Ds 16:02 0:00.08 /usr/local/sbin/apcupsd root 19152 0.0 0.0 416 324 0 R+ 16:02 0:00.00 grep apc [2.4.5-RELEASE][admin@bast.int.unixathome.org]/root: cat /var/run/apcupsd.pid 18890
Looking at the webui, 'Enable APC UPS Daemon service.' is now unchecked, despite apcupsd is running.
If I click save again, the above observed behavior repeats.
If I check, 'Enable APC UPS Daemon service.' and click on Save, the above observed behavior repeats.
Actions