summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/apcupsd/files/3.14.2/apcupsd.initd')
-rw-r--r--sys-power/apcupsd/files/3.14.2/apcupsd.initd35
1 files changed, 0 insertions, 35 deletions
diff --git a/sys-power/apcupsd/files/3.14.2/apcupsd.initd b/sys-power/apcupsd/files/3.14.2/apcupsd.initd
deleted file mode 100644
index 2fe0c76286f8..000000000000
--- a/sys-power/apcupsd/files/3.14.2/apcupsd.initd
+++ /dev/null
@@ -1,35 +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/3.14.2/apcupsd.initd,v 1.1 2007/11/26 08:17:39 tantive Exp $
-
-INSTANCE="${SVCNAME#*.}"
-if [ -z "${INSTANCE}" ] || [ "${SVCNAME}" = "apcupsd" ]; then
- INSTANCE="apcupsd"
-fi
-
-depend() {
- use net
-}
-
-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" \
- --exec /sbin/apcupsd
- eend $?
-}