Last active
January 30, 2023 14:51
-
-
Save notyal/2fd120557ae27a9e742f97265c6070ba to your computer and use it in GitHub Desktop.
/lib/systemd/system/factorio.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We usually ban accounts with unusual high login activity, leading to support mails, leading to wasted time not spent on expansion development ;)