Mordhau
 SirBorryvonHinten
  • Likes received 2
  • Date joined 3 May '19
  • Last seen 27 Sep

Private Message

10 2

@ExCTyrdlu said:
I created start script for systemd with on failure restart and update validate

Systemd unit

sudo cat > /etc/systemd/system/mordhau.service <<EOL
[Unit]
Description=Mordhau Server
Requires=network.target local-fs.target
After=network.target local-fs.target

[Service]
Type=simple
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=/home/steam/Steam/steamcmd.sh +login anonymous +runscript /home/steam/Steam/update_mordhau.txt
ExecStart=/home/steam/Steam/mordhau/Mordhau/Binaries/Linux/MordhauServer-Linux-Shipping Mordhau
ExecStop=/bin/kill -SIGINT $MAINPID

[Install]
WantedBy=multi-user.target
EOL

Installation

sudo systemctl enable mordhau.service

sudo systemctl start mordhau.service

it replaces the original startup script you can only use this one.

Can you please tell me how to start the server on a specific Port and QueryPort?
Normally i start my second server on the same machine with nohup ./MordhauServer.sh -Port=7780 -QueryPort=27016 &
Where do i have to append these parameters in the mordhau.service?

EDIT:
Found a solution myself. Just add -Port=7780 -QueryPort=27016 to ExecStart Command

10 2

Hey guys,
could one of you please post the Game.ini of his Linux-Server? I just installed a gameserver but after editing the Game.ini and editing it again it just showed weird chars.

Would be nice if anyone of you could help me.

Greetings
Borry