aboutsummaryrefslogtreecommitdiff
path: root/tibia-game.service
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-08-15 15:48:19 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-08-15 15:50:32 -0300
commit8082c228c5d618e6f865f76b4d0518c2fde573ec (patch)
tree59e61abe98c3060fb1eb3677b9dbbb744c92174a /tibia-game.service
parente4b8bf807b76f6f446d9617d9a3957dc77dd6e90 (diff)
downloadgame-8082c228c5d618e6f865f76b4d0518c2fde573ec.tar.gz
game-8082c228c5d618e6f865f76b4d0518c2fde573ec.zip
wrapping up for a public release
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