summarylogtreecommitdiffstats
path: root/factorio-headless.service
diff options
context:
space:
mode:
Diffstat (limited to 'factorio-headless.service')
-rw-r--r--factorio-headless.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/factorio-headless.service b/factorio-headless.service
index 4bf4d05ef65c..e81dc79c6869 100644
--- a/factorio-headless.service
+++ b/factorio-headless.service
@@ -6,8 +6,9 @@ After=network.target
[Service]
User=factorio
EnvironmentFile=/etc/conf.d/factorio
+WorkingDirectory=/var/lib/factorio
TimeoutStartSec=5
-ExecStart=/usr/bin/factorio --start-server $SAVE_FILE --autosave-interval $AUTOSAVE_INTERVAL --autosave-slots $AUTOSAVE_SLOTS --latency-ms $LATENCY $FACTORIO_EXTRA_ARGS
+ExecStart=/usr/bin/factorio --server-settings /etc/factorio/server-settings.json --start-server ${SAVE_FILE} $FACTORIO_EXTRA_ARGS
TimeoutStopSec=10
KillSignal=SIGINT
RestartSec=10