Bug in apcupsd package
mir last edited by
Hi apcupsd package maintainer,
I have found a bug in the apcupsd upstart script which prevents the daemon to start. The reason is that the left-over lock file is not proper detected in which case the script fails to remove it before trying to start apcupsd. As a result the daemon refused to start do to a left-over lock file from last run (lock file is named LCK..cuau0, LCK..cuau1 etc). Below patch fixes it.
–- /usr/local/etc/rc.d/apcupsd.sh 2014-12-01 00:59:52.000000000 +0100
+++ /tmp/apcupsd.sh 2014-12-01 01:13:12.000000000 +0100
@@ -7,8 +7,8 @@
if [ ! -d /var/tmp ]; then
/bin/mkdir -p /var/tmp
- if [ -f /var/tmp/LCK.. ]; then
- /bin/rm -f /var/tmp/LCK..
+ if [ -f /var/tmp/LCK..* ]; then
+ /bin/rm -f /var/tmp/LCK..*
dbaio last edited by
This script needs an update.
Also, you can modify the path to lockfile on the GUI. :-[