[HELP] Method 2 restart.sh
#1

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
Reply
#2

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 &
Reply
#3

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)