blob: 2521dd1091275b299c27580b271f81a62c39a69a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 $?
}
|