diff options
author | Danilo G. Baio (dbaio) <dbaio@bsd.com.br> | 2014-04-14 15:26:52 -0300 |
---|---|---|
committer | Danilo G. Baio (dbaio) <dbaio@bsd.com.br> | 2014-04-14 15:26:52 -0300 |
commit | afb2683350af9c66cf6708955f2af3016633c41b (patch) | |
tree | cedf5da0bf9c92c79054e6454d490b55f54f2669 /config | |
parent | a183c4a1f3568b889d0839dc1a29737a68fb01d4 (diff) | |
download | pfsense-packages-afb2683350af9c66cf6708955f2af3016633c41b.tar.gz pfsense-packages-afb2683350af9c66cf6708955f2af3016633c41b.tar.bz2 pfsense-packages-afb2683350af9c66cf6708955f2af3016633c41b.zip |
apcupsd - fix lock file when using usb devices
Diffstat (limited to 'config')
-rw-r--r-- | config/apcupsd/apcupsd.inc | 3 | ||||
-rw-r--r-- | config/apcupsd/apcupsd.xml | 2 |
2 files changed, 4 insertions, 1 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{ diff --git a/config/apcupsd/apcupsd.xml b/config/apcupsd/apcupsd.xml index e69344fc..f9003a61 100644 --- a/config/apcupsd/apcupsd.xml +++ b/config/apcupsd/apcupsd.xml @@ -40,7 +40,7 @@ <name>Apcupsd</name> <title>Services: Apcupsd (General)</title> <category>Monitoring</category> - <version>0.2</version> + <version>0.3</version> <include_file>/usr/local/pkg/apcupsd.inc</include_file> <addedit_string>Apcupsd has been created/modified.</addedit_string> <delete_string>Apcupsd has been deleted.</delete_string> |