Project

General

Profile

Actions

Bug #10845

open

apcupsd doesn't stop when not enabled

Added by Dan Langille over 4 years ago. Updated over 4 years ago.

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:

  1. visit /pkg_edit.php?xml=apcupsd.xml
  2. uncheck Enable APC UPS Daemon service.
  3. 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 #1

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.

Actions #2

Updated by Dan Langille over 4 years ago

I'm happy to try things here.

Actions #3

Updated by Dan Langille over 4 years ago

To be clear, this is not blocking / hindering anything for me.

Actions #4

Updated by Dan Langille over 4 years ago

This is repeatable after rebooting the pfSense host.

Actions

Also available in: Atom PDF