summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/hddtemp/files/hddtemp-init')
-rw-r--r--app-admin/hddtemp/files/hddtemp-init24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-admin/hddtemp/files/hddtemp-init b/app-admin/hddtemp/files/hddtemp-init
new file mode 100644
index 000000000000..7b0bda7a928f
--- /dev/null
+++ b/app-admin/hddtemp/files/hddtemp-init
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/files/hddtemp-init,v 1.1 2004/02/11 15:37:04 aliz Exp $
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting hddtemp daemon"
+ /sbin/start-stop-daemon --start --quiet --name hddtemp \
+ --exec ${HDDTEMP_EXEC} -- -d ${HDDTEMP_OPTS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping hddtemp daemon"
+ start-stop-daemon --stop --quiet --name hddtemp
+ eend $?
+}
+
+