Bug #10845
openapcupsd doesn't stop when not enabled
0%
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.
Updated by Jim Pingle over 4 years ago
- Category set to apcupsd
I can't seem to reproduce that here on 2.4.5-p1 (arm, network UPS), 2.5.0 (amd64, network UPS), or 2.5.0 (amd64, USB UPS). If I uncheck and save, the service is stopped. I check and save, and it is started again.
There may be some other factor I'm not seeing, though.
Updated by Dan Langille over 4 years ago
To be clear, this is not blocking / hindering anything for me.
Updated by Dan Langille over 4 years ago
This is repeatable after rebooting the pfSense host.