Om. Posted November 9, 2014 Share Posted November 9, 2014 Hi Guys, I've installed MTA Server on my VPS, but it shutdowns when i press "CTRL + C" (Exit ./mta-server), Is there anything which can run my Default Server 24/7 on my VPS? Link to comment
Om. Posted November 9, 2014 Author Share Posted November 9, 2014 Use screen in linux. Ye, i'm using Linux/Ubuntu, i probably don't know to use screen, can u help me? Link to comment
MTA Team jhxp Posted November 9, 2014 MTA Team Share Posted November 9, 2014 https://forum.multitheftauto.com/viewtopic.php?f=106&t=58533 See point 5. Running the server. The general idea is the same, even if you use Ubuntu (which is Debian-derived anyway) - just install the screen package and use it like I have explained in my tutorial. Also, wrong section. Link to comment
roddydennvor Posted November 9, 2014 Share Posted November 9, 2014 ./mta-server -d << This command to up your server 24/7 killall -9 mta-server << This command to shutdown your server Link to comment
Mr_Moose Posted November 9, 2014 Share Posted November 9, 2014 Without screen you can launch it as a background process. ./mta-server & ./mta-server > /dev/null 2>&1 However being able to access the console has it's advantages, and screen is one of the best tools for that. su root apt-get install screen After installation check this guide: http://www.computerhope.com/unix/screen.htm, for available commands and how it works. Link to comment
'LinKin Posted November 9, 2014 Share Posted November 9, 2014 screen -dmS NameOfScreen ./mta-server When u want to get back to server console type: screen -r NameOfScreen Other commands that are very used for screen are: screen -ls (shows the list of screens) screen -wipe (when you stop a server, you can refresh the screens list) Link to comment
Om. Posted November 10, 2014 Author Share Posted November 10, 2014 I got that already from jhxp, Thank you guys anyways Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now