Skip to content

Commit

Permalink
[SONiC-CEL]: fix platform fancontrol testcase failure issue (#10934)
Browse files Browse the repository at this point in the history
  • Loading branch information
qnos authored May 31, 2022
1 parent 912923f commit 8c1ded6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,12 @@ CheckFiles || exit 1

if [ -f "$PIDFILE" ]
then
echo "File $PIDFILE exists, is fancontrol already running?" >&2
exit 1
# Test if process is really running, if not, no need to exit
if ps -p $(echo $PIDFILE) > /dev/null
then
echo "File $PIDFILE exists, is fancontrol already running?" >&2
exit 1
fi
fi
echo $$ > "$PIDFILE"

Expand Down

0 comments on commit 8c1ded6

Please sign in to comment.