summarylogtreecommitdiffstats
path: root/factorio-init.service
diff options
context:
space:
mode:
Diffstat (limited to 'factorio-init.service')
-rw-r--r--factorio-init.service9
1 files changed, 5 insertions, 4 deletions
diff --git a/factorio-init.service b/factorio-init.service
index c270d26664c..b1c86578b74 100644
--- a/factorio-init.service
+++ b/factorio-init.service
@@ -1,14 +1,15 @@
[Unit]
-Description=Factorio Server Init Script
-After=network.target
+Description=Factorio Server
+Wants=network-online.target
+After=network.target network-online.target
[Service]
User=factorio
-Group=games
+Group=factorio
# We will store a pid file in your ${WRITE_DIR}/server.pid
# Adjust if you change the write dir of your server
-PIDFile=/var/lib/factorio/.factorio/server.pid
+PIDFile=/usr/share/factorio-init/server.pid
Type=forking
TimeoutStartSec=20