root/trunk/src/trinitycore/run-mangosd
@
91
| Revision 2, 340 bytes (checked in by yumileroy, 17 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/bash |
| 2 | # Trinity Server |
| 3 | # autorestart Script |
| 4 | |
| 5 | while : |
| 6 | do |
| 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 |
| 14 | done |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/TrinityCore/trac.cgi/chrome/site/your_project_logo.png)