Skip to content

Commit

Permalink
use monit to restart rfd (on raspberrymatic)
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Jul 13, 2020
1 parent 5c3a73d commit 414ab41
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/rc.d/jp-hb-devices-addon
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,14 @@ case "$1" in
echo "$changed Firmware file(s) changed" | tee -a $GLOBAL_LOGFILE
check_rfd
if [ $RFD -ge 1 ]; then
echo " - restarting RFD"
/etc/init.d/S61rfd restart | tee -a $GLOBAL_LOGFILE
check_monit
if [ $MONIT -ge 1 ]; then
echo " - restarting RFD [monit]"
/usr/bin/monit restart rfd
else
echo " - restarting RFD [init.d]"
/etc/init.d/S61rfd restart | tee -a $GLOBAL_LOGFILE
fi
fi
else
echo "Nothing changed - nothing to do"
Expand Down

0 comments on commit 414ab41

Please sign in to comment.