This repository has been archived on 2020-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-factorio/templates/factorio.service.j2

18 lines
508 B
Django/Jinja

[Unit]
Description=Factorio server
After=network.target
[Service]
ExecStart=/etc/factorio/bin/x64/factorio --start-server {{ factorio.paths.data }}/main.zip --port {{ factorio.bind.port }} --bind {{ factorio.bind.address }} --server-settings /etc/factorio/data/server-settings.json
Restart=on-failure
User=nobody
Group=nogroup
WorkingDirectory={{ factorio.paths.data }}
ProtectSystem=strict
BindPaths=-{{ factorio.paths.data }}
TemporaryFileSystem=/:rw
PrivateTmp=true
[Install]
WantedBy=multi-user.target