aboutsummaryrefslogtreecommitdiffstats
path: root/config/apcupsd/apcupsd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/apcupsd/apcupsd.inc')
-rw-r--r--config/apcupsd/apcupsd.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/apcupsd/apcupsd.inc b/config/apcupsd/apcupsd.inc
index a2b8d2ff..95abeca8 100644
--- a/config/apcupsd/apcupsd.inc
+++ b/config/apcupsd/apcupsd.inc
@@ -163,6 +163,9 @@ function sync_package_apcupsd(){
$apcupsd_rcfile="/usr/local/etc/rc.d/apcupsd.sh";
if (is_array($apcupsd_config) && $apcupsd_config['apcupsdenabled']=="on"){
$apcupsd_start = "echo \"Starting APC UPS Daemon...\"\n";
+ $apcupsd_start .= " if [ -f /var/spool/lock/LCK.. ]; then \n";
+ $apcupsd_start .= " /bin/rm -f /var/spool/lock/LCK.. \n";
+ $apcupsd_start .= " fi \n";
if ($apcupsd_config['killonpowerfail']=="on"){
$apcupsd_start .= " " . APCUPSD_BASE . "/sbin/apcupsd --kill-on-powerfail";
}else{