• 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!

Restart Linux

xLosT

Member
Joined
Jan 11, 2010
Messages
1,022
Reaction score
13
Location
Brasil, Rio Grande do Sul
How can i restart tfs only at scheduled time on linux?
I thought i'd do it for crontab, but how do i go back to the screen before running tfs


@edit
i creat sh with directory and work

Code:
#!/bin/bash
ulimit -c unlimited
while true; do cd /home/otserv && ./tfs; done

one more question, how do i see the tfs screen with pid id
 
Last edited:
In you server path, first you need save screen session with one name:
screen -A -S tfs

Later you run the file:
./restart.sh

So when you close the console window and enter again,
for see the screens with pid, only you do:
screen -x

Now appear a list of screens, finally you do:
screen -x pid

:D
 
Last edited:

Similar threads

Back
Top