MTA Basic Usage

All Commands

A complete list of commands can be found by typing.

./mtaserver

Below are the most common commands available.

Running

start

./mtaserver start

stop

./mtaserver stop

restart

./mtaserver restart

console

Console allows you to view the live console of a server as it is running and allow you to enter commands; if supported.

./mtaserver console

To exit the console press CTRL+b d. Pressing CTRL+c will terminate the server.

Debugging

Details

You can get all important and useful details about the server such as passwords, ports, config files etc.

./mtaserver details

Debug

Use debug mode to help you if you are having issues with the server. Debug allows you to see the output of the server directly to your terminal allowing you to diagnose any problems the server might be having.

./mtaserver debug

Logs

Server logs are available to monitor and diagnose your server. Script, console and game server (if available) logs are created for the server.

/home/mtaserver/logs

Backup

Backup will allow you to create a complete tar bzip2 archive of the whole server.

./mtaserver backup

Monitor

LinuxGSM can monitor the game server by checking that the proccess is running and querying it. Should the server go offline LinuxGSM can restart the server and send you an alert. You can use cronjobs to setup monitoring.

./mtaserver monitor

Last updated