diff options
| author | Michael Mason <ms13sp@gmail.com> | 2009-10-28 11:14:28 +0000 |
|---|---|---|
| committer | Michael Mason <ms13sp@gmail.com> | 2009-10-28 11:14:28 +0000 |
| commit | 86ab49bf71dfd4dda5329a64f4e458e92f240edd (patch) | |
| tree | cc85fc098301719fb5cdd29ffebff0c667eb300b /testing/apcupsd/apcupsd.initd | |
| parent | d4f48422585b6407b3cbf462933691a7d13ad468 (diff) | |
| parent | f881839e00a6387bf00dc5c48ad123e723ee7657 (diff) | |
| download | aports-86ab49bf71dfd4dda5329a64f4e458e92f240edd.tar.bz2 aports-86ab49bf71dfd4dda5329a64f4e458e92f240edd.tar.xz | |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing/apcupsd/apcupsd.initd')
| -rw-r--r-- | testing/apcupsd/apcupsd.initd | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/testing/apcupsd/apcupsd.initd b/testing/apcupsd/apcupsd.initd deleted file mode 100644 index 5265347f41..0000000000 --- a/testing/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 $? -} - |
