update
This commit is contained in:
@@ -388,7 +388,10 @@ MMSTOP(){
|
|||||||
echo
|
echo
|
||||||
echo -e "${idsCL[Red]}All services have been stopped${idsCL[Default]}"
|
echo -e "${idsCL[Red]}All services have been stopped${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
|
getMMbash=$(pgrep -f '/mm')
|
||||||
|
for i in $getMMbash; do
|
||||||
|
/bin/kill $i
|
||||||
|
done
|
||||||
#exit 0
|
#exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
run.sh
2
run.sh
@@ -70,7 +70,7 @@ else
|
|||||||
if [ "${1}" == "clear" ]; then
|
if [ "${1}" == "clear" ]; then
|
||||||
rm -f ${MMFOLDER}/mm.*
|
rm -f ${MMFOLDER}/mm.*
|
||||||
fi
|
fi
|
||||||
if [ -f ${MMFOLDER}/mm.stop.checking ] && [ "${1}" != "status" ]; then
|
if [ -f ${MMFOLDER}/mm.stop.checking ] && [ "${1}" != "status" ] && [ "${1}" != "stop" ]; then
|
||||||
#fd=$(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking))
|
#fd=$(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking))
|
||||||
if [ $(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking)) -gt 900 ]; then
|
if [ $(expr $(date +%s) - $(stat -L --format %Y ${MMFOLDER}/mm.stop.checking)) -gt 900 ]; then
|
||||||
rm -f ${MMFOLDER}/mm.stop*
|
rm -f ${MMFOLDER}/mm.stop*
|
||||||
|
|||||||
Reference in New Issue
Block a user