Last active
May 22, 2017 16:26
-
-
Save raspo/998919adae0e5132aed4837e8030fd25 to your computer and use it in GitHub Desktop.
Factorio Server Service - /etc/systemd/system/factorio.service
This file contains hidden or 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 | |
| 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