• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] auto restart it does not work

Status
Not open for further replies.

Clastor

Enthusiast
Could someone tell me why I get so if I have everything right ?, thank you very much sorry for my English

4094774520.png


92ee87348c.png


4fc1b1a001.png


f9bd41913f.png


ceef7c9fd2.png


1b72c40b96.png



I'm working in : Ubuntu 14.04 64 bits
 
Last edited:

Hyperion

Founder
chmod +x restart.sh

then ./restart.sh

Also, you can't "screen command" You have to screen first, then run the command inside the screen and detach with ctrl a+d
 

Clastor

Enthusiast
chmod +x restart.sh

then ./restart.sh

Also, you can't "screen command" You have to screen first, then run the command inside the screen and detach with ctrl a+d

I Wrote "chmod +x restart.sh" and " ./restart.sh". Too I used the screen command. None the two ways works. The file "restart.sh" with the "worldserver" are in the same folder, so... I don't know what happen. Appears this error:

92ee87348c.png
 

Jiinx

BETA Tester
I stepped through your process and was able to successfully run the bash script with the desired results

My worldserver is located in ~/server/

Code:
cd ~/server
nano restart.sh

Code:
#!bin/bash
while :
do
./worldserver
sleep 0
done

exit and save (^X)

Code:
chmod +x restart.sh
NOTE: looks like you are using PuTTY, at this point (if using default colors) restart.sh should be green

Code:
./restart.sh
 

Clastor

Enthusiast
I stepped through your process and was able to successfully run the bash script with the desired results

My worldserver is located in ~/server/

Code:
cd ~/server
nano restart.sh

Code:
#!bin/bash
while :
do
./worldserver
sleep 0
done

exit and save (^X)

Code:
chmod +x restart.sh
NOTE: looks like you are using PuTTY, at this point (if using default colors) restart.sh should be green

Code:
./restart.sh


Hi, I still have no way to fix it, I get this error after doing all the steps you told me. Thanks for answering

ccbad62cce.png
 
Status
Not open for further replies.
Top