27.06.2012, 14:48
(
Последний раз редактировалось bhaveshnande; 28.06.2012 в 03:52.
)
I recently got a VPS and tried hosting my SAMP server which I created about a year ago.
I can start the server by cd to /my/server/dir/ and then ./samp03svr but cannot keep it alive. It closes as soon as I close my PuTTY SSH terminal. There are three methods to keep the server alive on https://sampwiki.blast.hk/wiki/Linux_Server . I wanted to try the third one because it was simple and just used 2 .sh files.
I placed gtaserver.sh in my /usr/local/bin directory and my startgtaserver.sh in /my/svr/dir/ also I made all .sh files executable and changed path in both my scripts.
The page states to use the new command gtaserver start, gtaserver stop and gtaserver restart to start, stop and restart the server but when I do so, the terminal returns "Command not found: gtaserver".
I tried using cd /usr/local/bin then ./gtaserver.sh start/stop/restart but it returns "Need to be a terminal"
Whats wrong?
I can start the server by cd to /my/server/dir/ and then ./samp03svr but cannot keep it alive. It closes as soon as I close my PuTTY SSH terminal. There are three methods to keep the server alive on https://sampwiki.blast.hk/wiki/Linux_Server . I wanted to try the third one because it was simple and just used 2 .sh files.
I placed gtaserver.sh in my /usr/local/bin directory and my startgtaserver.sh in /my/svr/dir/ also I made all .sh files executable and changed path in both my scripts.
The page states to use the new command gtaserver start, gtaserver stop and gtaserver restart to start, stop and restart the server but when I do so, the terminal returns "Command not found: gtaserver".
I tried using cd /usr/local/bin then ./gtaserver.sh start/stop/restart but it returns "Need to be a terminal"
Whats wrong?