#!/bin/bash
#

PIDFILE="/var/run/fancontrol.pid"

if [ -f "$PIDFILE" ]
then
#	echo "File $PIDFILE exists, is fancontrol already running?" >> /home/TSILOG/fanlog.txt
	echo "File $PIDFILE exists, is fancontrol already running?"
	exit 1
fi
echo $$ > "$PIDFILE"

#echo 'starting fan control program' >> /home/TSILOG/fanlog.txt
echo 'starting fan control program'
/usr/sbin/fancontrol_3 &
