Posts: 637
Threads: 103
Joined: May 2013
Reputation:
0
How to make restart.sh in linux?
i want my server when crash anda down is will auto turn on!
Anyone can help me ?
in my vps :
when i am login : then cd fr > in fr is my samp03svr
Posts: 617
Threads: 6
Joined: Oct 2011
Reputation:
0
all you need to do is for example create a restart.sh where your samp03svr is located at and simply update the paths that say "/path/to/samp/server/ to your path of your server such as /home/gameserver/ or whatever.
Than just make sure you're logged into a non-root user such as a user called gameserver and type nohup ./restart.sh &
Posts: 104
Threads: 0
Joined: Jan 2015
Reputation:
0
I suggest for you to use method one wich uses crontab to keep server alive all the time.