Last active
April 25, 2023 17:09
-
-
Save Drac346/9207d4cea2f9d38e2ad047347f4d91d2 to your computer and use it in GitHub Desktop.
Factorio SystemD Configuration
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
#place in /etc/systemd/system/factorio.service | |
# systemctl start factorio.service | |
# systemctl enable factorio.service #autostarts the server | |
# systemctl stop factorio.service | |
[Unit] | |
Descritpion=Factorio Headless Server | |
After=network.target | |
After=systemd-user-sessions.service | |
After=network-online.target | |
[Service] | |
Type=simple | |
User=steam | |
ExecStart=/home/steam/steamcmd/factorio/bin/x64/factorio -- start-server superscience.zip --server-settings /home/steam/steamcmd/factorio/bin/x64/server-settings.json --server-whitelist /home/steam/steamcmd/factorio/bin/x64/server-whitelist.json --console-log /home/steam/console.log | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks thats very convinient!