Chapter 6. Operation

Table of Contents

Signals
Startup
Shutdown
Show online status
Restart
Reload database

Jaymod supplies a serverctl script which is used to control the game server process on Linux. While you could create your own script to manage your game server, it is recommended you examine the launch command and signal usage in order to get a better understanding of officially endorsed methods.

Signals

Jaymod now has special signal handling routines for Linux. The serverctl script makes use of these signals. If you have your own scripts, it is recommended you use the following signals for the appropriate actions.

sighup

Queues a graceful shutdown sequence composed of { killserver, quit } server commands.

sigterm

Queues a graceful shutdown sequence composed of { killserver, quit } server commands.

sigusr1

Queues a graceful database reload composed of { !readconfig } server commands.

Startup

Startup server. For this example we will assume you are using the serverctl script bundled with Jaymod.

[etserver]$ cd ~etserver/server1/
[etserver]$ ./serverctl status
[etserver]$ ./serverctl start
[etserver]$ ./serverctl status

Shutdown

Shutdown server. For this example we will assume you are using the serverctl script bundled with Jaymod.

[etserver]$ cd ~etserver/server1/
[etserver]$ ./serverctl status
[etserver]$ ./serverctl stop
[etserver]$ ./serverctl status

Show online status

Check server status. For this example we will assume you are using the serverctl script bundled with Jaymod.

[etserver]$ cd ~etserver/server1/
[etserver]$ ./serverctl status

Restart

Restart server. For this example we will assume you are using the serverctl script bundled with Jaymod.

[etserver]$ cd ~etserver/server1/
[etserver]$ ./serverctl status
[etserver]$ ./serverctl restart
[etserver]$ ./serverctl status

Reload database

Reload database files. For this example we will assume you are using the serverctl script bundled with Jaymod.

[etserver]$ cd ~etserver/server1/
[etserver]$ ./serverctl reload