summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2017-02-03 16:30:10 +0100
committerDavid Seifert <soap@gentoo.org>2017-02-04 22:21:29 +0100
commit0db6f2a540378ec6ad32c32e8c9c4e682450a72f (patch)
tree0aa7ab857dc71a372a501c52bdb8aee74dd51b93 /sys-power
parentsys-libs/pwdb: remove unused file (diff)
downloadgentoo-0db6f2a540378ec6ad32c32e8c9c4e682450a72f.tar.gz
gentoo-0db6f2a540378ec6ad32c32e8c9c4e682450a72f.tar.bz2
gentoo-0db6f2a540378ec6ad32c32e8c9c4e682450a72f.zip
sys-power/apcupsd: remove unused file
Closes: https://github.com/gentoo/gentoo/pull/3791
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/apcupsd/files/apcupsd.init.2a37
1 files changed, 0 insertions, 37 deletions
diff --git a/sys-power/apcupsd/files/apcupsd.init.2a b/sys-power/apcupsd/files/apcupsd.init.2a
deleted file mode 100644
index 8f673d44e945..000000000000
--- a/sys-power/apcupsd/files/apcupsd.init.2a
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-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" \
- --retry TERM/5/TERM/5 \
- --exec /sbin/apcupsd
- eend $?
-}
-