summaryrefslogtreecommitdiffstats
path: root/abs/extra/lm_sensors/fancontrol.rc
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/lm_sensors/fancontrol.rc')
-rw-r--r--abs/extra/lm_sensors/fancontrol.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/abs/extra/lm_sensors/fancontrol.rc b/abs/extra/lm_sensors/fancontrol.rc
index bce5d7e..8e98d06 100644
--- a/abs/extra/lm_sensors/fancontrol.rc
+++ b/abs/extra/lm_sensors/fancontrol.rc
@@ -7,8 +7,8 @@ PID=$(pidof -o %PPID -x /usr/sbin/fancontrol)
case "$1" in
start)
stat_busy "Starting fancontrol"
- [ -z "$PID" ] && /usr/sbin/fancontrol >/dev/null 2>&1 &
- if [ $? -gt 0 ]; then
+ [ -z "$PID" ] && /usr/sbin/fancontrol -D &>/dev/null
+ if [ $? -gt 0 -o -n "$PID" ]; then
stat_fail
else
add_daemon fancontrol