summaryrefslogtreecommitdiff
blob: 3734dfede1d90082b0a6071d81156825afd6ae9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

CONFIG=/etc/sensors3.conf

depend() {
	need localmount
	use logger lm_sensors
}

pidfile=/run/sensord.pid
command=/usr/sbin/sensord
command_args="--config-file ${CONFIG} ${SENSORD_OPTIONS} --pid-file ${pidfile}"

start_pre() {
	if [ ! -f ${CONFIG} ]; then
		eerror "Configuration file ${CONFIG} not found"
		return 1
	fi
}