Skip to content

Instantly share code, notes, and snippets.

@raspo
Last active May 22, 2017 16:26
Show Gist options
  • Select an option

  • Save raspo/998919adae0e5132aed4837e8030fd25 to your computer and use it in GitHub Desktop.

Select an option

Save raspo/998919adae0e5132aed4837e8030fd25 to your computer and use it in GitHub Desktop.
Factorio Server Service - /etc/systemd/system/factorio.service
[Unit]
Description=Factorio Server
After=network.target
[Service]
User=factorio
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=/opt/factorio/server.pid
Type=simple
TimeoutStartSec=20
TimeoutStopSec=20
ExecStart=/opt/factorio/bin/x64/factorio --server-settings /opt/factorio/data/server-settings.json --start-server-load-latest
RestartSec=20
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment