[docker-platform-monitor]: Remove stale fancontrol.pid file (if exists) before starting fancontrol (#1002)

This commit is contained in:
Joe LeVeque 2017-09-30 10:55:03 -07:00 committed by lguohan
parent 9efcc9c333
commit bbf1d6624b

View File

@ -18,6 +18,9 @@ fi
# If this platform has a fancontrol config file, copy it to it's proper place
# and start fancontrol
if [ -e /usr/share/sonic/platform/fancontrol ]; then
# Remove stale pid file if it exists
rm -f /var/run/fancontrol.pid
/bin/cp -f /usr/share/sonic/platform/fancontrol /etc/
supervisorctl start fancontrol
fi