Skip to content

Instantly share code, notes, and snippets.

@sm-Fifteen
Created January 16, 2018 02:24
Show Gist options
  • Save sm-Fifteen/3f50c4d711b4539db22d558e73c80818 to your computer and use it in GitHub Desktop.
Save sm-Fifteen/3f50c4d711b4539db22d558e73c80818 to your computer and use it in GitHub Desktop.
[Unit]
Description=Factorio Server (using save %i.zip)
ConditionFileNotEmpty=/home/factorio/factorio-15-33/saves/%i.zip
[Service]
User=factorio
Group=factorio
WorkingDirectory=/home/factorio/factorio-15-33
Restart=on-abnormal
ExecStart=/home/factorio/factorio-15-33/bin/x64/factorio --start-server ./saves/%i.zip --server-settings ./data/server-settings.json
[Install]
WantedBy=network.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment