From 7e5cd77730015792e26338edcc137acf3f1bd2ae Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Aug 2011 23:14:34 +0000 Subject: Thu Aug 4 23:14:34 UTC 2011 --- community/apcupsd/PKGBUILD | 6 +++--- community/apcupsd/apcupsd | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'community/apcupsd') diff --git a/community/apcupsd/PKGBUILD b/community/apcupsd/PKGBUILD index 9ef6c7ff5..ecdc98517 100644 --- a/community/apcupsd/PKGBUILD +++ b/community/apcupsd/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 52280 2011-07-23 09:29:14Z spupykin $ +# $Id: PKGBUILD 53371 2011-08-03 09:47:21Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: Todd Musall pkgname=apcupsd pkgver=3.14.9 -pkgrel=1 +pkgrel=2 pkgdesc="Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines." arch=(i686 x86_64) url="http://www.apcupsd.org" @@ -19,7 +19,7 @@ backup=(etc/apcupsd/apcupsd.conf etc/apcupsd/hosts.conf source=(http://downloads.sourceforge.net/apcupsd/$pkgname-$pkgver.tar.gz apcupsd) md5sums=('aa5e2c2954a81c2f07e0a356e38fe853' - '5eae3c4d921eeb81798a0250fe3dd111') + '8bc674da24188c69b0ad5d7fe7510f73') build() { cd $srcdir/$pkgname-$pkgver diff --git a/community/apcupsd/apcupsd b/community/apcupsd/apcupsd index 3cd5c9dc8..73ca2b4bf 100755 --- a/community/apcupsd/apcupsd +++ b/community/apcupsd/apcupsd @@ -13,8 +13,6 @@ case "$1" in if [ $? -gt 0 ]; then stat_fail else - PID=`pidof -o %PPID /sbin/apcupsd` - echo $PID > /var/run/apcupsd.pid add_daemon apcupsd stat_done fi @@ -25,7 +23,6 @@ case "$1" in if [ $? -gt 0 ]; then stat_fail else - rm /var/run/apcupsd.pid rm_daemon apcupsd stat_done fi @@ -39,6 +36,6 @@ case "$1" in /sbin/apcaccess status ;; *) - echo "usage: $0 {start|stop|restart|status}" + echo "usage: $0 {start|stop|restart|status}" esac exit 0 -- cgit v1.2.3-54-g00ecf