As in the title.
I get this when I start apcupsd :
jún 09 20:12:00 router systemd: Starting APC UPS Monitor... jún 09 20:12:00 router systemd: Started APC UPS Monitor. jún 09 20:12:00 router apcupsd: Valid lock file for pid=128, but not ours pid=625 jún 09 20:12:00 router systemd: apcupsd.service: main process exited, code=exited, status=1/FAILURE jún 09 20:12:00 router systemd: Unit apcupsd.service entered failed state.
the lockfile is specified as
and it is there (ls -la /etc/apcupsd | grep LCK)
-rw-r--r-- 1 root root 11 jún 7 06.50 LCK..ttyS0
I've changed the lockfile to /var/lock/ in the config file. Now it works.
Why does it not work at the default location?
Is it a bug?
Last edited by scar (2013-06-10 08:54:03)
“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson
I had this same issue. Deleting the lock file in /etc/apcupsd/ fixed it, but then it eventually happened again. I switched the location to /var/lock/ and it's working again. Will post back if it fails again.
Same problem, same fix!
Thanks for the thread/posts with the solution...
Welcome to Arch Linux. I am going to go ahead and close this old post
Glad your problem is solved.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence. You must not work with the public much. -- Trilby
How to Ask Questions the Smart Way