FS#73607 - [apcupsd] The systemd service file was written incorrectly.

Attached to Project: Community Packages
Opened by daiaji (daiaji) - Thursday, 03 February 2022, 08:08 GMT
Last edited by Florian Pritz (bluewind) - Sunday, 27 February 2022, 10:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

[apcupsd] The systemd service file was written incorrectly.
Description:
When I configure apcupsd to use snmp to link APC UPS for systemd service file dependencies, usually apcupsd doesn't work.

Additional info:
package version: apcupsd-3.14.14-6-x86_64

cat /usr/lib/systemd/system/apcupsd.service
[Unit]
Description=APC UPS Power Control Daemon for Linux
After=syslog.target
After=network-online.target

[Service]
ExecStartPre=-/bin/rm -f /etc/apcupsd/powerfail
ExecStart=/sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf
KillMode=process

[Install]
WantedBy=multi-user.target

sudo systemctl status apcupsd.service
● apcupsd.service - APC UPS Power Control Daemon for Linux
Loaded: loaded (/usr/lib/systemd/system/apcupsd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-02-03 16:05:34 CST; 1min 3s ago
Process: 750 ExecStartPre=/bin/rm -f /etc/apcupsd/powerfail (code=exited, status=0/SUCCESS)
Main PID: 764 (apcupsd)
Tasks: 3 (limit: 38401)
Memory: 1016.0K
CPU: 2ms
CGroup: /system.slice/apcupsd.service
└─764 /sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf

2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable
2月 03 16:05:34 RingCity apcupsd[764]: sendto: Network is unreachable

Steps to reproduce:
Configure the APC UPS to use snmp for apcupsd.
This task depends upon

Closed by  Florian Pritz (bluewind)
Sunday, 27 February 2022, 10:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  apcupsd-3.14.14-7-x86_64.pkg.tar.zst
Comment by daiaji (daiaji) - Thursday, 03 February 2022, 08:10 GMT

Loading...