SA-MP Forums Archive
[HELP] Method 2 restart.sh - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: [HELP] Method 2 restart.sh (/showthread.php?tid=579384)



[HELP] Method 2 restart.sh - VenomMancer - 26.06.2015

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


Re: [HELP] Method 2 restart.sh - Jake187 - 26.06.2015

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 &


Re: [HELP] Method 2 restart.sh - Alex Magaсa - 26.06.2015

You can setup a cronjob for your SA-MP server.

Here's the tutorial:
https://sampwiki.blast.hk/wiki/Linux_Server (Method 2-3)


Re: [HELP] Method 2 restart.sh - LinuxViper - 26.06.2015

I suggest for you to use method one wich uses crontab to keep server alive all the time.