Jump to content

Two questions :)


Gibbss

Recommended Posts

Okey :P i got 2 questions....

1. I made simple status script in php but when im in page, server console got spam this:

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

WorldSocket::handle_input: Peer has closed connection

Whats wrong?

2. I tried to make autostarter after crash, so i made bash script:

#!/bin/bash

for (( ; ; ))

do

if [ -z "$(pgrep mangosd)" ] then

echo "Loading MaNGOS [ Press CTRL+C to Stop ]";

/root/mangos-server/bin/mangosd

fi

done

But then i trying to run this thing i got:

root@debjan:~/restarter# ./as

./as: line 8: syntax error when an unexpected tag `fi'

./as: line 8: ` fi '

Link to comment
Share on other sites

For 2. You misplaced "then": "if foo; then bar; fi" and don't run MaNGOS as root. In my folder there is a restarter called "run-mangosd" ...

#!/bin/bash

for (( ; ; ))

do

if [ -z "$(pgrep mangosd)" ];

then echo "Loading MaNGOS [ Press CTRL+C to Stop ]";

/root/mangos-server/bin/mangosd

fi

done

Regards

Skirnir

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use