Skip to content

Commit

Permalink
we test the rfd and hs485d existance using the content of /etc/config…
Browse files Browse the repository at this point in the history
…/InterfacesList.xml
  • Loading branch information
jens-maus committed Jul 6, 2016
1 parent b953da2 commit 75bddd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/bin/hm-watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ else
fi

# check rfd to run properly (ALL: /etc/init.d/S60rfd)
if [ -e /etc/config/rfd.conf ] &&
if grep -q BidCos-RF /etc/config/InterfacesList.xml &&
[ $(ps | grep "/bin/rfd " | grep -v grep | wc -l) -lt 1 ]; then
# rfd is not running, restart it
restart_service "rfd"
Expand All @@ -107,7 +107,7 @@ else
fi

# check hs485d (ALL: /etc/init.d/S60hs485d)
if [ -e /etc/config/hs485d.conf ] &&
if grep -q BidCos-Wired /etc/config/InterfacesList.xml &&
[ $(ps | grep "bin/hs485d " | grep -v grep | wc -l) -lt 1 ]; then
# hs485d is not running, restart it
restart_service "hs485d" 60
Expand Down

0 comments on commit 75bddd6

Please sign in to comment.