summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2009-10-16 21:00:55 +0000
committerThilo Bangert <bangert@gentoo.org>2009-10-16 21:00:55 +0000
commit6858d08d391397b62e04eb6564e58c55a46ef1f1 (patch)
tree123e41bb145847e0a286f7b455d78412c2197536 /sys-power/powernowd/files
parentVersion bump (diff)
downloadhistorical-6858d08d391397b62e04eb6564e58c55a46ef1f1.tar.gz
historical-6858d08d391397b62e04eb6564e58c55a46ef1f1.tar.bz2
historical-6858d08d391397b62e04eb6564e58c55a46ef1f1.zip
version bump (bug #212209, bug #285535)
Package-Manager: portage-2.2_rc42/cvs/Linux i686
Diffstat (limited to 'sys-power/powernowd/files')
-rw-r--r--sys-power/powernowd/files/powernowd.initd29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-power/powernowd/files/powernowd.initd b/sys-power/powernowd/files/powernowd.initd
new file mode 100644
index 000000000000..525a20c754f8
--- /dev/null
+++ b/sys-power/powernowd/files/powernowd.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powernowd/files/powernowd.initd,v 1.1 2009/10/16 21:00:55 bangert Exp $
+
+opts="reload"
+
+depend() {
+ need localmount
+ use logger
+}
+
+start() {
+ ebegin "Starting powernowd"
+ start-stop-daemon --start --exec /usr/sbin/powernowd -- ${POWERNOWD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping powernowd"
+ start-stop-daemon --stop --exec /usr/sbin/powernowd
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading powernowd"
+ start-stop-daemon --stop --oknodo --exec /usr/sbin/powernowd --signal HUP
+ eend $?
+}