diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-26 09:46:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-26 09:46:40 +0000 |
commit | b135457ff0ba0eda52c9808f767a2a30013cc9ac (patch) | |
tree | 7a0eedc9b318548ba10777091a2270f6528a25cd /unstable/apcupsd/apcupsd.initd | |
parent | 21bc3ff0b7a620a08f55f2da39c2cf6772c2f4b7 (diff) | |
download | aports-b135457ff0ba0eda52c9808f767a2a30013cc9ac.tar.bz2 aports-b135457ff0ba0eda52c9808f767a2a30013cc9ac.tar.xz |
testing/apcupsd: moved from unstable
it builds
Diffstat (limited to 'unstable/apcupsd/apcupsd.initd')
-rw-r--r-- | unstable/apcupsd/apcupsd.initd | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/unstable/apcupsd/apcupsd.initd b/unstable/apcupsd/apcupsd.initd deleted file mode 100644 index 5265347f4..000000000 --- a/unstable/apcupsd/apcupsd.initd +++ /dev/null @@ -1,38 +0,0 @@ -#!/sbin/runscript -# Copyright 2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/files/apcupsd.init.2,v 1.1 2009/01/15 15:21:11 flameeyes Exp $ - -INSTANCE="${SVCNAME#*.}" -if [ -z "${INSTANCE}" ] || [ "${SVCNAME}" = "apcupsd" ]; then - INSTANCE="apcupsd" -fi - -depend() { - use net - after firewall -} - -start() { - rm -f /etc/apcupsd/powerfail - - export SERVICE="${SVCNAME}" - - ebegin "Starting APC UPS daemon" - start-stop-daemon \ - --start --pidfile "/var/run/${SVCNAME}.pid" \ - --exec /sbin/apcupsd -- \ - -f "/etc/apcupsd/${INSTANCE}.conf" \ - -P "/var/run/${SVCNAME}.pid" - eend $? -} - -stop() { - ebegin "Stopping APC UPS daemon" - start-stop-daemon \ - --stop --pidfile "/var/run/${SVCNAME}.pid" \ - --retry TERM/5/TERM/5 \ - --exec /sbin/apcupsd - eend $? -} - |