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
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
|
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
Wednesday, 21 June 2017, 11:32 GMT
Reason for closing: Fixed
Additional comments about closing: tmpfiles handled by pacman hook now
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