SA-MP Forums Archive
Problem in running my server on vps. - 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: Problem in running my server on vps. (/showthread.php?tid=369469)



Problem in running my server on vps. - Black Wolf - 17.08.2012

Hello friends,

I have a problem with my VPS.

I logged to my vps via ssh and i installed linux files.

After it when i do ./samp03svr to start server it starts but as i cancel ssh my server gets closed too.Please help me with this and also how can i add users to via please tell me the linux commands to adduser and pass for it.


Re: Problem in running my server on vps. - Samp_India - 17.08.2012

You should run it as a background process.
use
Код:
nohup ./samp03svr &
To add user :

Код:
adduser name
then

Код:
passwd password
If you want to disable shell access for the user.
Type

Код:
usermod -s /sbin/nologin name



Re: Problem in running my server on vps. - Black Wolf - 17.08.2012

Thanks but for adding user passwd is not working as it says you are now saving password for name.
But when i type a pass it says bad pass Unix something shit.

Also for restarting server what's the command.


Re: Problem in running my server on vps. - Samp_India - 17.08.2012

To stop server.

Type
Код:
killall samp03svr



Re: Problem in running my server on vps. - Black Wolf - 17.08.2012

i want command for restarting


Re: Problem in running my server on vps. - Black Wolf - 17.08.2012

help please ;P


Re: Problem in running my server on vps. - Samp_India - 17.08.2012

There is no cmd for restarting..You have to kill it then start it again.btw you can also Setup a Control pannel for your Samp server.


Re: Problem in running my server on vps. - DarkB0y - 17.08.2012

well u can go in game and do /rocn login password than /rcon gmx to restart the server


Re: Problem in running my server on vps. - VOXrr - 17.08.2012

Unfortunately, SA:MP doesn't come with an init.d script, so restarting is a little awkward at best. (SA:MP .deb/.rpm package, anyone?)

Luckily though, the SA:MP wiki does explain a few ways to get a restarting 'script' up and running.
https://sampwiki.blast.hk/wiki/Linux_Server


Re: Problem in running my server on vps. - Black Wolf - 17.08.2012

can anyone help me in installing anti crasher on vps ?