summarylogtreecommitdiffstats
path: root/factorio-headless.service
blob: 4bf4d05ef65c839cd9f6de652ca0fc37946c90d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Factorio game headless server
Documentation=http://www.factorio.com/
After=network.target

[Service]
User=factorio
EnvironmentFile=/etc/conf.d/factorio
TimeoutStartSec=5
ExecStart=/usr/bin/factorio --start-server $SAVE_FILE --autosave-interval $AUTOSAVE_INTERVAL --autosave-slots $AUTOSAVE_SLOTS --latency-ms $LATENCY $FACTORIO_EXTRA_ARGS
TimeoutStopSec=10
KillSignal=SIGINT
RestartSec=10
Restart=on-failure

[Install]
WantedBy=multi-user.target