aboutsummaryrefslogtreecommitdiff
path: root/roles/factorio/files/factorio.service
blob: f7f53bbaffb650cb24b2521942daf45b9ee2e002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# vi: ft=systemd
[Unit]
Description=Factorio dedicated server
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=factorio
Group=factorio
Restart=on-failure
RestartSec=30s
WorkingDirectory=/opt/factorio
ExecStart=/opt/factorio/run.sh

[Install]
WantedBy=multi-user.target