Skip to content

Commit

Permalink
[docker-platform-monitor]: Remove stale fancontrol.pid file (if exist…
Browse files Browse the repository at this point in the history
…s) before starting fancontrol (#1002)
  • Loading branch information
jleveque authored and lguohan committed Sep 30, 2017
1 parent 9efcc9c commit bbf1d66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockers/docker-platform-monitor/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbf1d66

Please # to comment.