Skip to content

Instantly share code, notes, and snippets.

@Drac346
Last active April 25, 2023 17:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drac346/9207d4cea2f9d38e2ad047347f4d91d2 to your computer and use it in GitHub Desktop.
Save Drac346/9207d4cea2f9d38e2ad047347f4d91d2 to your computer and use it in GitHub Desktop.
Factorio SystemD Configuration
#place in /etc/systemd/system/factorio.service
# systemctl start factorio.service
# systemctl enable factorio.service #autostarts the server
# systemctl stop factorio.service
[Unit]
Descritpion=Factorio Headless Server
After=network.target
After=systemd-user-sessions.service
After=network-online.target
[Service]
Type=simple
User=steam
ExecStart=/home/steam/steamcmd/factorio/bin/x64/factorio -- start-server superscience.zip --server-settings /home/steam/steamcmd/factorio/bin/x64/server-settings.json --server-whitelist /home/steam/steamcmd/factorio/bin/x64/server-whitelist.json --console-log /home/steam/console.log
[Install]
WantedBy=multi-user.target
@fritzlolpro
Copy link

thanks thats very convinient!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment