#!/sbin/openrc-run

command="/usr/sbin/thinkfan"
command_args="-q -s5 -c /etc/thinkfan.conf"
pidfile="/var/run/thinkfan.pid"

extra_started_commands="reload"

required_files="/etc/thinkfan.conf"

depend() {
	after modules
}

reload() {
	ebegin "Reloading "
	start-stop-daemon --signal HUP --pidfile ""
	eend $?
}
