Page MenuHomeSolus

apcupsd needs systemd unit file and move configuration file to correct directory
Closed, ResolvedPublic

Description

I've installed apcupds and found two issues

  1. The apcupsd documentation is unclear how to restart the daemon. Apparently the only way on Solus right now is to kill the process and restart with /sbin/apcupcd

Other distros documentation have the user restart via systemd. It would eliminate a good deal of confusion for users if we included a systemd unit file and enabled it on system startup. This would also make restarting the service much easier for users.

  1. The configuration file written during installation is in /etc/apcupsd.conf. The apcupsd documentation tells users to expect this file in /etc/apcupsd/apcupsd.conf. The configuration file written by Solus should be in the directory specified by the apcupsd docs.

Event Timeline

Hi @TClark77,

you're right. I took a quick look at the Makefiles and they intentionally put them to /etc/ - I don't know. But it would nice to change that. I've found the PKGBUILD of ArchLinux. They do the same, I think: https://github.com/archlinux/svntogit-community/blob/packages/apcupsd/trunk/PKGBUILD

DataDrake triaged this task as Normal priority.Jan 21 2022, 8:35 AM
DataDrake edited projects, added Software; removed Lacks Project.
DataDrake moved this task from Backlog to Package Fixes on the Software board.
TClark77 claimed this task.

Closing, as cups now runs as a systemd service