Re: [Beta 0.3]Fox Control for TM²
Posted: 21 Aug 2011, 00:37
ok, thx.
now I understend how, but not what it do and how, however, here is my code.
the red is what I have added.
ok code function is not showing red
code of "control.sh":
#!/bin/sh
case "$1" in
start)
cd /home/user/tm2server/FoxControl
php control.php TM2 </dev/null >FoxControl.log 2>&1 &
rm fox1.txt
rm nohup.out
sleep 5
echo $! > /var/run/FoxControl.pid
;;
stop)
kill -TERM `cat /var/run/FoxControl.pid`
;;
esac
<no more code here>
you have to start it with:
nohup ./control.sh start &
good luck,
p.s.: it seems like on one server it was crashing one time since i started it,
but I run 2 servers at this time, and not 100% sure if I set all right
edit: fox is crashed on both servers,
I try now the solution from first post
serversearch is "lolzone"
now I understend how, but not what it do and how, however, here is my code.
the red is what I have added.
ok code function is not showing red

code of "control.sh":
#!/bin/sh
case "$1" in
start)
cd /home/user/tm2server/FoxControl
php control.php TM2 </dev/null >FoxControl.log 2>&1 &
rm fox1.txt
rm nohup.out
sleep 5
echo $! > /var/run/FoxControl.pid
;;
stop)
kill -TERM `cat /var/run/FoxControl.pid`
;;
esac
<no more code here>
you have to start it with:
nohup ./control.sh start &
good luck,
p.s.: it seems like on one server it was crashing one time since i started it,
but I run 2 servers at this time, and not 100% sure if I set all right

edit: fox is crashed on both servers,
I try now the solution from first post

serversearch is "lolzone"
