VPN Monitor - developed by devon (https://www.github.com/Kerbz-dev) See https://github.com/MBII/VPNMonitor for a MBII version of this program, configured by Spaghetti
----------- Installation ----------
1: cd to your jka/gamedata directory (not base folder)
2: make sure you enable 'set developer 1' in your JKA server's launch script (./linuxjampded +exec server.cfg +set developer 1) and your server is logging console output to a .txt file named log.txt (see bottom for an example)
3: import from github: git clone
4: Edit file 'vpnmonitor' with required input
5: chmod a+x vpnmonitor, chmod a+x installvpndb, chmod a+x startvpnmonitor
6: run installvpndb (./installvpndb)
7: run startvpnmonitor (./startvpnmonitor)
8: If you run a daily restart script for the server, make sure you add ./startvpnmonitor after your server restart command. Otherwise log will be truncated on server restart.
---------- Example startup script -----------
restart script that logs console output to 'log.txt' -- just start this with a screen command
#!/bin/bash
echo "JKA startup script"
status=1 while [
if [ $status -ne 0 ]
then
date=`/bin/date`
echo "Server crashed with status "$status" at "$date
fi
done
echo "Server exited peacefully"