blob: 22d191b0f0838105258b4cfb6ed7d088ab3fd539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
CONFIG=/etc/fancontrol
depend() {
need localmount
use lm_sensors
}
command=/usr/sbin/fancontrol
command_arguments="${CONFIG}"
start_stop_daemon_args="--background"
pidfile=/var/run/fancontrol.pid
start_pre() {
if [ ! -f ${CONFIG} ]; then
eerror "Configuration file ${CONFIG} not found"
return 1
fi
}
|