summaryrefslogtreecommitdiff
path: root/docs/linux-restarter.md
diff options
context:
space:
mode:
authorOrangs <v.hrabinec@centrum.cz>2019-03-26 22:28:29 +0100
committerFrancesco Borzì <borzifrancesco@gmail.com>2019-03-26 22:28:29 +0100
commit0a65361e9b8f0842f3f5cf62d1dcb7eb29c5f136 (patch)
treec1b374686ad8cd183ffe77e3664a3c2431724156 /docs/linux-restarter.md
parent7ba88216744bbb1d4097b4117ddf81d900c760d2 (diff)
downloadwiki-0a65361e9b8f0842f3f5cf62d1dcb7eb29c5f136.tar.gz
wiki-0a65361e9b8f0842f3f5cf62d1dcb7eb29c5f136.tar.bz2
wiki-0a65361e9b8f0842f3f5cf62d1dcb7eb29c5f136.zip
Linux automatic restarter page (#28)
Diffstat (limited to 'docs/linux-restarter.md')
-rw-r--r--docs/linux-restarter.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/linux-restarter.md b/docs/linux-restarter.md
new file mode 100644
index 0000000..be74c2a
--- /dev/null
+++ b/docs/linux-restarter.md
@@ -0,0 +1,52 @@
+NOTE: screen is linux package/software only!
+
+### Requirements for automatic restarter on GNU/Linux
+
+1. ***Open terminal and run this command
+apt-get install screen***
+
+2. ***Create 3 files in your azerothcore directory***
+
+**First file with name auth.sh and put this code in**
+
+ #!/bin/sh
+ while true
+ do
+ ./authserver
+ sleep 60
+ done
+
+**2rd file with name world.sh and put this code in**
+
+ #!/bin/sh
+ while true
+ do
+ ./worldserver
+ sleep 60
+ done
+
+**3rd file with name restarter.sh and put this code in**
+
+ #!/bin/bash
+ screen -A -m -d -S authserver ./auth.sh
+ screen -A -m -d -S worldserver ./world.sh
+
+3. ***For starting Restarter u must type this command in your terminal
+./restarter.sh***
+
+4. ***Your restarter now starting Authserver + Worldserver. If u need look in this screens, use this commands***
+
+ screen -r
+
+*After this command, u can see:
+There are several suitable screens (u must find numbers before xxx.authserver) and type this command*
+
+ screen -r xxx.authserver
+
+and u are in screen!
+
+**Some tips fon screens**
+*Ctrl + A then Ctrl + D . Doing this will detach you from the screen session which you can later resume by doing screen -r .
+You can also do: Ctrl + A then type : , this will put you in screen command mode. Type the command detach to be detached from the running screen session.*
+
+