Screen

From ArcEmu-Wiki
Jump to: navigation, search

You may also wish to preserve the ArcEmu processes once you've logged out of SSH. To do this, you'll need to install Screen if it isn't installed already.

The syntax is relatively simple.


screen ./arcemu-world


This will run the arcemu-world program in a new session. To leave this screen and keep it running, press "CTRL + A and then D" to detach.

To return to the screen later on use
screen --list
then type
screen -r ScreenIDHere


You may replace ./arcemu-world with sh restarter.sh for example, to run a restart program or even use screen on startup to launch the server.

To do this, you can either use a restart script, cronjob, or if you are working with a desktop linux environment you can simply use the built in startup application manager(Both Gnome and KDE have these).


If you wish to set up a cronjob, google around - far more documentation is provided for both cron AND Screen then the ArcEmu team can provide on these programs.


Sample restart script

#! /bin/bash
while :
do
./arcemu-world
sleep 150
wait $!
echo Realm went down, restarting!
done


Ico info.png Increase 150 to 250 or 300 to prevent bash from spamming the executable or the script may cause undesired effects if the server refuses to start or has an error.


Save the above script as restarter.sh and call it using
screen ./restarter.sh


Return

Return to the last page you were on if you came here from the Compiling guides:

Compiling:_Windows

Compiling:_FreeBSD

Compiling:_Linux

Compiling:_Mac_OS_X

Personal tools