[SONiC-CEL]: fix platform fancontrol testcase failure issue (#10934)
This commit is contained in:
parent
1a6cb0f409
commit
27cd735082
@ -348,8 +348,12 @@ CheckFiles || exit 1
|
|||||||
|
|
||||||
if [ -f "$PIDFILE" ]
|
if [ -f "$PIDFILE" ]
|
||||||
then
|
then
|
||||||
echo "File $PIDFILE exists, is fancontrol already running?" >&2
|
# Test if process is really running, if not, no need to exit
|
||||||
exit 1
|
if ps -p $(echo $PIDFILE) > /dev/null
|
||||||
|
then
|
||||||
|
echo "File $PIDFILE exists, is fancontrol already running?" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo $$ > "$PIDFILE"
|
echo $$ > "$PIDFILE"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user