BLACKSITE
:
3.144.86.233
:
103.154.184.216 / www.astitvaad.com
:
Linux vps.readyhost.in 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64
:
/
scripts
/
Upload File:
files >> //scripts/mongodbrestart.sh
SERVICE_PATH=`whereis service | awk '{print $2}'` GREP=`whereis grep | awk '{print $2}'` PS=`whereis ps | awk '{print $2}'` MONGODRESTART="$SERVICE_PATH mongod restart" GET_MONGOD=`$PS aux | awk '{print $1}' | $GREP mongod | wc -l` if [ $GET_MONGOD -eq 0 ] then $MONGODRESTART fi GET_MONGOD=`$PS aux | awk '{print $1}' | $GREP mongod | wc -l` if [ $GET_MONGOD -eq 0 ] then dt=$(date +%Y%m%d%H%M%S) if [ -S /tmp/mongodb-27017.sock ] then mv /tmp/mongodb-27017.sock /tmp/mongodb-27017.sock_${dt} fi $MONGODRESTART fi