From 02ab481a2d7ebcbcb712e19f68e5a1fcdd934826 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 17 Mar 2025 17:18:50 -0400 Subject: [PATCH] make fne-watchdog.sh noisy; --- tools/fne-watchdog.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/fne-watchdog.sh b/tools/fne-watchdog.sh index 28fe6482..698ef140 100755 --- a/tools/fne-watchdog.sh +++ b/tools/fne-watchdog.sh @@ -39,6 +39,10 @@ while [ true ]; do PS_OUT=`ps --no-headers ${PID}` if [ ${#PS_OUT} -eq 0 ]; then logger "dvmfne PID ${PID} not running -- restarting ${PID_FILE} ${CONFIG}" + CURRENT_USER=$(whoami) + if [ "$CURRENT_USER" == "root" ]; then + wall -n "dvmfne PID ${PID} not running -- restarting ${PID_FILE} ${CONFIG}" + fi ${R_PATH}/start-dvm-fne.sh ${CONFIG} ${PID_FILE} >/dev/null ERRNO=$? if [ $ERRNO -ne 0 ]; then