diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/apmd/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/apmd/files')
-rw-r--r-- | sys-apps/apmd/files/apmd.confd | 3 | ||||
-rw-r--r-- | sys-apps/apmd/files/apmd.rc6 | 28 |
2 files changed, 31 insertions, 0 deletions
diff --git a/sys-apps/apmd/files/apmd.confd b/sys-apps/apmd/files/apmd.confd new file mode 100644 index 000000000000..7025e822dedc --- /dev/null +++ b/sys-apps/apmd/files/apmd.confd @@ -0,0 +1,3 @@ +# /etc/init.d/apmd: + +APMD_OPTS="-P /etc/apm/apmd_proxy" diff --git a/sys-apps/apmd/files/apmd.rc6 b/sys-apps/apmd/files/apmd.rc6 new file mode 100644 index 000000000000..cce594a57df7 --- /dev/null +++ b/sys-apps/apmd/files/apmd.rc6 @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount +} + +checkconfig() { + if [ ! -e /proc/apm ] ; then + eerror "APM support has not been compiled into the kernel" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting apmd" + start-stop-daemon --start --quiet --pidfile /var/run/apmd.pid \ + --startas /usr/sbin/apmd -- ${APMD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping apmd" + start-stop-daemon --stop --quiet --pidfile /var/run/apmd.pid + eend $? +} |