Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

CentOS RedHad Start Server on init

Manu Muñoz edited this page Jun 21, 2016 · 1 revision

Pre-Requisites:

  • Create user called otserv
  • All server data is over /etc/otserv

Edit: /etc/systemd/system/otserv.service

[Unit]
Description=Open Tibia Server
After=network.target

[Service]
Type=simple
User=otserv
ExecStart=cd /etc/otserv && /bin/otserv -s
Restart=on-abort


[Install]
WantedBy=multi-user.target

Then you need to enable the service: systemctl enable otserv

Finally you can start/stop the server using:

  • service otserv start
  • service otserv stop
Clone this wiki locally