summarylogtreecommitdiffstats
path: root/valheim-server.service
diff options
context:
space:
mode:
authorMarkus Sommer2021-04-12 16:21:11 +0200
committerMarkus Sommer2021-04-12 16:21:11 +0200
commitd8bc0455a0c44505b2527aa649924ccaa29985fa (patch)
treeeb38119303dc7f0a387d23d86afd7d73044f6a22 /valheim-server.service
downloadaur-d8bc0455a0c44505b2527aa649924ccaa29985fa.tar.gz
Initial package
Diffstat (limited to 'valheim-server.service')
-rw-r--r--valheim-server.service31
1 files changed, 31 insertions, 0 deletions
diff --git a/valheim-server.service b/valheim-server.service
new file mode 100644
index 000000000000..6cf26136c491
--- /dev/null
+++ b/valheim-server.service
@@ -0,0 +1,31 @@
+[Unit]
+Description=Valheim Dedicated Server
+After=network.target
+
+[Service]
+Type=simple
+User=valheim
+Group=valheim
+Environment="LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH"
+ExecStart=/opt/valheim-server/valheim_server.x86_64 -name "Valheim" -password "secret" -port 2456 -world "world0" -public 1
+WorkingDirectory=/opt/valheim-server
+KillSignal=SIGINT
+NoNewPrivileges=true
+ProtectSystem=full
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+LockPersonality=true
+MemoryDenyWriteExecute=false
+RestrictRealtime=true
+RestrictSUIDSGID=true
+RemoveIPC=true
+SystemCallFilter=@system-service
+SystemCallArchitectures=native
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file