Skip to content

Commit

Permalink
Healthcheck: More clearly call out if fppd file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ghormann committed Jan 27, 2024
1 parent bcace96 commit 9bcb69e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/healthCheck
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ HC_FPPD() {
PrintItemHead "FPPD is running"

PID=$(pgrep fppd)
if [ "x${PID}" != "x" ]
if [ ! -f "${FPPDIR}/src/fppd" ]
then
STATUS=0
STATUSSTR="FPPD executable is missing. Rebuild requied."

elif [ "x${PID}" != "x" ]
then
STATUS=1
STATUSSTR="FPPD is running at PID ${PID}"
Expand Down Expand Up @@ -279,7 +284,7 @@ HC_MediaDisk() {

#############################################################################
# Main Health Check routines here. Some call others due to dependencies but
# some stand alon on their own.
# some stand alone on their own.

#############################
# FPP
Expand Down

0 comments on commit 9bcb69e

Please sign in to comment.