apcupsd generated systemd unit file doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apcupsd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
For me on Ubuntu 16.04, `apcupsd` doesn't start when using `sudo systemctl start apcupsd` or `sudo service apcupsd start`.
It didn't appear in `ps aux | grep apc` and I got:
% systemctl status apcupsd
● apcupsd.service - LSB: Starts apcupsd daemon
Loaded: loaded (/etc/init.
Active: active (exited) since Wed 2018-01-10 22:21:00 CET; 34min ago
Docs: man:systemd-
Tasks: 0
Memory: 0B
CPU: 0
Note the `active (exited)` and no processes shown.
I suspect that in this case the `systemd-
I fixed it by just installing a proper systemd unit using:
curl https:/
sudo systemctl daemon-reload
After that, I can `sudo service apcupsd start` all fine.
That service file has contents
[Unit]
Description=APC UPS Power Control Daemon for Linux
[Service]
ExecStartPr
ExecStart=
[Install]
WantedBy=
I don't know if upstream debian has the same problem, but the same fix would work there.
See also my answers here:
* https:/ /askubuntu. com/a/994508/ 65575 /forum. fhem.de/ index.php/ topic,64021. msg746445. html#msg746445
* https:/