Quantcast
Channel: MultiCS & CSP & OScam Exchange Forum
Viewing all articles
Browse latest Browse all 42250

Script to check if Multics is working and restart it

$
0
0
Code:
#!/bin/sh
nc -z -w 9 localhost 80 || { echo "MultiCS DOWN @ `date +%Y-%m-%d_%H:%M:%S`" >> /var/log/multics.log;
killall -9 multics.x64 >/dev/null ; sleep 1 ;
/usr/bin/multics/multics.x64 -b
sleep 1
exit 0 ; }
Replace 80 with the webif port of your multics and multics.x64 with multics.x32 if you are running the 32 bit version. Also replace the path to your multics. Place it in var, or anywhere u want and crontab every 5 or so minutes.. Hope it helps !

Viewing all articles
Browse latest Browse all 42250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>