summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/acpid/files/acpid-2.0.11-init.d')
-rw-r--r--sys-power/acpid/files/acpid-2.0.11-init.d29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-power/acpid/files/acpid-2.0.11-init.d b/sys-power/acpid/files/acpid-2.0.11-init.d
new file mode 100644
index 000000000000..1f2c68e3c9c5
--- /dev/null
+++ b/sys-power/acpid/files/acpid-2.0.11-init.d
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-2.0.11-init.d,v 1.1 2011/08/04 17:01:47 ssuominen Exp $
+
+opts="reload"
+
+depend() {
+ need localmount
+ use logger
+}
+
+start() {
+ ebegin "Starting acpid"
+ start-stop-daemon --start --quiet --exec /usr/sbin/acpid -- ${ACPID_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping acpid"
+ start-stop-daemon --stop --exec /usr/sbin/acpid
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading acpid configuration"
+ start-stop-daemon --stop --exec /usr/sbin/acpid --signal HUP
+ eend $?
+}