FS#49856 - [apcupsd] Unable to create UPS lock file

Attached to Project: Community Packages
Opened by Topher Cawlfield (tcawlfield) - Sunday, 26 June 2016, 18:22 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 21 June 2017, 11:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
With the default configuration, /etc/apcupsd.conf. I get the following error when starting:
Unable to create UPS lock file.

Can be fixed by adding:
ExecStartPre=/usr/bin/mkdir -p /run/apcupsd
to apcupsd.service. But this of course depends on the configuration file. There must be a better way.

Additional info:
* package version(s)
* config and/or log files etc.
My apcupsd.conf has:
LOCKFILE /run/apcupsd

Steps to reproduce:
systemctl start apcupsd.service
journalctl -u apcupsd.service
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 21 June 2017, 11:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  tmpfiles handled by pacman hook now
Comment by Doug Newgard (Scimmia) - Sunday, 26 June 2016, 21:20 GMT
This dir is being created by tmpfiles. It will work just fine after a reboot.

The problem is that this commit [1] is wrong, there is no hook for tmpfiles; so the dir isn't getting created on install, only on boot.

[1]https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/apcupsd&id=5a10d03adc109f56c2071842cee70599771f502a

Loading...