SAMP Basic Usage

All Commands

A complete list of commands can be found by typing.

./sampserver

Below are the most common commands available.

Running

start

./sampserver start

stop

./sampserver stop

restart

./sampserver 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.

./sampserver 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.

./sampserver 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.

./sampserver 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/sampserver/logs

Backup

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

./sampserver 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.

./sampserver monitor

Last updated