aboutsummaryrefslogtreecommitdiff
path: root/tibia-game.service
diff options
context:
space:
mode:
Diffstat (limited to 'tibia-game.service')
-rw-r--r--tibia-game.service26
1 files changed, 26 insertions, 0 deletions
diff --git a/tibia-game.service b/tibia-game.service
new file mode 100644
index 0000000..e158b21
--- /dev/null
+++ b/tibia-game.service
@@ -0,0 +1,26 @@
+# Basic SYSTEMD service file for the Tibia Game Server
+
+[Unit]
+Description=Tibia Game Server
+After=network.target
+Requires=tibia-querymanager.service
+
+[Install]
+WantedBy=multi-user.target
+
+[Service]
+Type=simple
+User=tibia-game
+Group=tibia-game
+ExecStart=/opt/tibia/game/bin/game
+WorkingDirectory=/opt/tibia/game
+Restart=always
+RestartSec=10
+# After a SIGTERM, the server will issue shutdown warnings for 5 minutes and
+# take another minute or two to save everything and exit. Not waiting for this
+# process to complete would cause data to not be properly saved.
+TimeoutStopSec=600
+LimitCORE=infinity
+StandardOutput=journal
+StandardError=journal
+SyslogIdentifier=%n