[docker-platform-monitor]: Remove stale fancontrol.pid file (if exists) before starting fancontrol (#1002)
This commit is contained in:
parent
9efcc9c333
commit
bbf1d6624b
@ -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
|
||||
|
Reference in New Issue
Block a user