18 lines
508 B
Plaintext
18 lines
508 B
Plaintext
|
[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
|