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 an (immediate) controlled shutdown sequence composed of { killserver, quit } server command sequence.

sigterm

Queues an (immediate) controlled shutdown sequence composed of { killserver, quit } server command sequence.

sigusr1

Queues an (immediate) controlled database reload composed of { !readconfig } server command sequence.

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