• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Simple, how this? Doubt

Vrotz

Member
Joined
Apr 7, 2011
Messages
1,071
Reaction score
7
Location
Brazil
Hi,

my server is hosted in Ubuntu 10.04 and i need an auto restarter.

listen, to open my sv i need talk this in terminal:

Code:
cd /otserv/trunk

after in file trunk:

Code:
screen ./theforgottenserver

OK! My server is running now, but how I "conjure" the command ?

someone guy can asnwer me?

i read in the google:
Code:
while true; do ./forgottenserver; done;

but idk use this
 
restarter.sh
LUA:
#!/bin/bash
ulimit -c unlimited
while true; do
        cd /otserv/trunk
        ./theforgottenserver
        sleep 5
done

for open ..
LUA:
cd /otserv/trunk
screen ./restarter.sh
 
Create a file in trunk folder.. lets call it cj.sh, put inside the text that Cronox posted, and save it. Now run it.

screen ./cj.sh

If isn't giving permission just:

Code:
chmod 777 cj.sh

And try again.
 
isnt working.. i create the file and rename: cj.sh

when i put the text and execute the comand on screen, him dont find ¬¬

because?
 
Back
Top