Skip to content

Instantly share code, notes, and snippets.

@notyal
Last active January 30, 2023 14:51
Show Gist options
  • Save notyal/2fd120557ae27a9e742f97265c6070ba to your computer and use it in GitHub Desktop.
Save notyal/2fd120557ae27a9e742f97265c6070ba to your computer and use it in GitHub Desktop.
/lib/systemd/system/factorio.service
[Unit]
Description=Factorio Server
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=600
StartLimitBurst=5
[Service]
ExecStart=/opt/factorio/bin/x64/factorio --start-server /opt/factorio/world.zip
User=factorio
Group=factorio
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
@vnznznz
Copy link

vnznznz commented Jan 30, 2023

I would really appreciate you limiting the amount of restarts your Factorio service does for recovery. Something like 5 restarts / 10 minutes would be nice to keep broken Factorio installs from spamming our auth service.

StartLimitIntervalSec=600
StartLimitBurst=5

We usually ban accounts with unusual high login activity, leading to support mails, leading to wasted time not spent on expansion development ;)

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