summaryrefslogtreecommitdiff
path: root/nonsystemd/lm_sensors-openrc/sensord.initd
diff options
context:
space:
mode:
Diffstat (limited to 'nonsystemd/lm_sensors-openrc/sensord.initd')
-rw-r--r--nonsystemd/lm_sensors-openrc/sensord.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/nonsystemd/lm_sensors-openrc/sensord.initd b/nonsystemd/lm_sensors-openrc/sensord.initd
new file mode 100644
index 000000000..d76a23724
--- /dev/null
+++ b/nonsystemd/lm_sensors-openrc/sensord.initd
@@ -0,0 +1,19 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+SENSORD_PIDFILE=${SENSORD_PIDFILE:-"/run/sensord.pid"}
+SENSORD_SSDARGS=${SENSORD_SSDARGS:-"--wait 1000"}
+SENSORD_TERMTIMEOUT=${SENSORD_TERMTIMEOUT:-"TERM/60/KILL/5"}
+SENSORD_OPTS=${SENSORD_OPTS:-""}
+
+command="/usr/bin/sensord"
+command_args="${SENSORD_OPTS} --pid-file ${SENSORD_PIDFILE}"
+start_stop_daemon_args="${SENSORD_SSDARGS}"
+pidfile="${SENSORD_PIDFILE}"
+retry="${SENSORD_TERMTIMEOUT}"
+
+depend() {
+ need localmount
+ use logger lm_sensors
+}