diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-22 07:31:18 +0100 |
commit | 908778078736bd36f7a60a2d576d415cb8e000fa (patch) | |
tree | c6a4796c48b608c14dc7e9674cdbd38f905e3c15 /sys-power/apcupsd/files | |
parent | 185fa19bbf68a4d4dca534d2b46729207a177f16 (diff) |
gentoo resync : 22.05.2021
Diffstat (limited to 'sys-power/apcupsd/files')
-rw-r--r-- | sys-power/apcupsd/files/apcupsd.init.4 | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/sys-power/apcupsd/files/apcupsd.init.4 b/sys-power/apcupsd/files/apcupsd.init.4 deleted file mode 100644 index ebd6b9755d4f..000000000000 --- a/sys-power/apcupsd/files/apcupsd.init.4 +++ /dev/null @@ -1,48 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -INSTANCE="${SVCNAME#*.}" -if [ -z "${INSTANCE}" ] || [ "${SVCNAME}" = "apcupsd" ]; then - INSTANCE="apcupsd" -fi - -dir="/run/apcupsd" - -depend() { - use net -} - -start_pre() { - checkpath -d -m 0775 -o root:uucp ${dir} -} - -start() { - rm -f /etc/apcupsd/powerfail - - export SERVICE="${SVCNAME}" - - if [ ! -d "${dir}" ]; then - einfo " Creating ${dir}" - /bin/mkdir -p "${dir}" - /bin/chown root:uucp "${dir}" - fi - - ebegin "Starting APC UPS daemon" - start-stop-daemon \ - --start --pidfile "${dir}/${SVCNAME}.pid" \ - --exec /sbin/apcupsd -- \ - -f "/etc/apcupsd/${INSTANCE}.conf" \ - -P "${dir}/${SVCNAME}.pid" - eend $? -} - -stop() { - ebegin "Stopping APC UPS daemon" - start-stop-daemon \ - --stop --pidfile "${dir}/${SVCNAME}.pid" \ - --retry TERM/5/TERM/5 \ - --exec /sbin/apcupsd - eend $? -} - |