I've followed this guide to set up Factorio as a headless server on an Ubuntu VPS.
The following systemctl service runs with no issues:
Code: Select all
[Unit]
Description=Factorio Server service
After=network.target
[Service]
User=gamemaster
ExecStart=/home/gamemaster/factorio/bin/x64/factorio --server-settings /home/gamemaster/factorio/data/server-settings.json --start-server-load-latest --console-log /home/gamemaster/Factorio.log
Restart=always
[Install]
WantedBy=multi-user.target
Code: Select all
ExecStart=screen -S Factorio /home/gamemaster/factorio/bin/x64/factorio --server-settings /home/gamemaster/factorio/data/server-settings.json --start-server-load-latest --console-log /home/gamemaster/Factorio.log
Does anyone know what the issue is with adding the screen command to ExecStart? Is my syntax messed up?