summarylogtreecommitdiffstats
path: root/valheim-server.service
diff options
context:
space:
mode:
Diffstat (limited to 'valheim-server.service')
-rw-r--r--valheim-server.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/valheim-server.service b/valheim-server.service
index 6cf26136c49..dbeb8cb7509 100644
--- a/valheim-server.service
+++ b/valheim-server.service
@@ -7,7 +7,8 @@ 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
+EnvironmentFile=/etc/valheim/server.conf
+ExecStart=/opt/valheim-server/valheim_server.x86_64 -name ${NAME} -password ${PASSWORD} -port ${PORT} -world ${WORLD} -public ${PUBLIC}
WorkingDirectory=/opt/valheim-server
KillSignal=SIGINT
NoNewPrivileges=true