Psyz Posted March 19, 2021 Posted March 19, 2021 Can anyone introduce a guide on how to configure the shell to start again some of the services of rathena after a crash? Using Crontab or another system? I am grateful. PS: If possible inside the screen Quote
0 Haruka Mayumi Posted March 19, 2021 Posted March 19, 2021 #!/bin/bash run=1 if [ "$run" -eq 1 ]; then if [ $(ps | grep -e login-server | wc -l) -eq 0 ]; then # Login server down ./login-server & > /dev/null fi if [ $(ps | grep -e char-server | wc -l) -eq 0 ]; then # Char server down ./char-server & > /dev/null fi if [ $(ps | grep -e map-server | wc -l) -eq 0 ]; then # Map server down ./map-server & > /dev/null fi sleep 10 ./auto-restarter.sh & fi you can also cut each server in run it on screen. 1 Quote
0 Psyz Posted March 19, 2021 Author Posted March 19, 2021 4 hours ago, Haruka Mayumi said: #!/bin/bash run=1 if [ "$run" -eq 1 ]; then if [ $(ps | grep -e login-server | wc -l) -eq 0 ]; then # Login server down ./login-server & > /dev/null fi if [ $(ps | grep -e char-server | wc -l) -eq 0 ]; then # Char server down ./char-server & > /dev/null fi if [ $(ps | grep -e map-server | wc -l) -eq 0 ]; then # Map server down ./map-server & > /dev/null fi sleep 10 ./auto-restarter.sh & fi you can also cut each server in run it on screen. Perfect ! Thk !!! Quote
0 Frost Diver Posted September 22, 2021 Posted September 22, 2021 On 3/19/2021 at 10:48 PM, Haruka Mayumi said: #!/bin/bash run=1 if [ "$run" -eq 1 ]; then if [ $(ps | grep -e login-server | wc -l) -eq 0 ]; then # Login server down ./login-server & > /dev/null fi if [ $(ps | grep -e char-server | wc -l) -eq 0 ]; then # Char server down ./char-server & > /dev/null fi if [ $(ps | grep -e map-server | wc -l) -eq 0 ]; then # Map server down ./map-server & > /dev/null fi sleep 10 ./auto-restarter.sh & fi you can also cut each server in run it on screen. Hi, may i know how to use/run this script? Quote
Question
Psyz
Can anyone introduce a guide on how to configure the shell to start again some of the services of rathena after a crash?
Using Crontab or another system?
I am grateful.
PS: If possible inside the screen
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.