root/trunk/src/trinitycore/run-mangosd @ 227

Revision 2, 340 bytes (checked in by yumileroy, 17 years ago)

[svn] * Proper SVN structure

Original author: Neo2003
Date: 2008-10-02 16:23:55-05:00

Line 
1#!/bin/bash
2# Trinity Server
3# autorestart Script
4
5while :
6do
7        echo "TrinityCore daemon restarted"
8        echo `date` >> crash.log &
9        ./mangosd | tail -n 20 >> crash.log
10        echo " " >> crash.log &
11        pid=`ps ax | awk '($5 ~ /trinitycore/) { print $1 }'`
12        wait $pid
13        echo `date` ", TrinityCore daemon crashed and restarted." >> serverlog
14done
Note: See TracBrowser for help on using the browser.