This commit is contained in:
2025-05-28 21:27:58 -05:00
parent 4b3d0d7d10
commit c4a8f5465b
3 changed files with 16 additions and 16 deletions

View File

@@ -139,7 +139,7 @@ MMSTART(){
# "${VPN_START[@]}" >/dev/null 2>&1
# sleep 10s
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
elif [ -f ${TMPFOLDER}/mm.vpn.fail2 ]; then
@@ -159,7 +159,7 @@ MMSTART(){
# "${VPN_START[@]}" >/dev/null 2>&1
# sleep 10s
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
fi
@@ -275,7 +275,7 @@ MMSTART(){
# "${VPN_START[@]}" >/dev/null 2>&1
# sleep 10s
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
fi
@@ -307,7 +307,7 @@ MMSTART(){
# "${VPN_START[@]}" >/dev/null 2>&1
# sleep 10s
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
fi
@@ -329,7 +329,7 @@ MMSTART(){
# "${VPN_START[@]}" >/dev/null 2>&1
# sleep 10s
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
[ $VERBOSE = true ] && DEBUGLOGSTOP
exit 1
fi
@@ -499,7 +499,7 @@ MMSTART(){
rm -f ${TMPFOLDER}/mm.vpn.fail*
fi
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
echo -e "${idsCL[Green]}All systems are go!${idsCL[Default]}"
fi
@@ -519,7 +519,7 @@ MMSTOP(){
fi
echo
touch ${TMPFOLDER}/mm.stop
touch ${NM_FOLDER}/.tmp/mm.stop
# touch ${NM_FOLDER}/.tmp/mm.stop
# echo -en "${idsCL[LightCyan]}Stopping background MM scripts... ${idsCL[Default]}"
# getMMbash=$(pgrep -f '/mm')
@@ -606,7 +606,7 @@ MMSTOP(){
fi
echo
touch ${TMPFOLDER}/mm.stop
touch ${NM_FOLDER}/.tmp/mm.stop
# touch ${NM_FOLDER}/.tmp/mm.stop
}
FULLSTOP(){
echo -en "${idsCL[LightCyan]}Stopping any background MM scripts still running... ${idsCL[Default]}"
@@ -1759,12 +1759,12 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then
checkstopped=`expr $(date +%s) - $(stat -c %Y ${TMPFOLDER}/mm.stop.checking)`
if [ $checkstopped -gt 900 ]; then
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
echo "$(date) - Bash script stuck in stop mode after doing a check, will restart" >> ${MM_LOGFILE}
SENDNOTICE "MM Script Error" "Bash script stuck in check mode, restarting system"
MMSTOP
rm -f ${TMPFOLDER}/mm.stop*
rm -f ${NM_FOLDER}/.tmp/mm.stop*
# rm -f ${NM_FOLDER}/.tmp/mm.stop*
getStuckMM=$(pgrep -f '/mm')
for i in $getStuckMM; do
/bin/kill $i