Skip to content

Instantly share code, notes, and snippets.

View joelheaps's full-sized avatar

Joel Heaps joelheaps

View GitHub Profile
@joelheaps
joelheaps / LinuxGSM-Valheim-Systemd.md
Last active April 3, 2021 17:21
Running LinuxGSM Valheim game server with systemd services and timers

Running a LinuxGSM Valheim Game Server with Systemd Services and Timers

Having recently setup a dedicated Valheim game server, I wanted to share the systemd files I used to orchestrate and automate running and updating the server.

These notes assume that you've setup your Valheim game server using LinuxGSM according to https://linuxgsm.com/lgsm/vhserver/. I'm using Ubuntu 20.04 to host the game, but any LinuxGSM compatible distro with systemd should work.

You should also be able to modify these files to run other LinuxGSM game servers.

Running Valheim itself as a systemd service

LinuxGSM has a page the references this: https://docs.linuxgsm.com/configuration/running-on-boot