diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-04-06 11:54:21 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-04-06 11:54:21 +0200 |
commit | 736ffc77f09a8e238e63a9819d19fe41e7c523d4 (patch) | |
tree | c4c3d4e36865c0ef63f33af71a2edf2857e0312b /roles/factorio/files/factorio.service | |
parent | e835ea003eb91a534bfcead68062562e6ed1e665 (diff) | |
download | ansible_collection-736ffc77f09a8e238e63a9819d19fe41e7c523d4.tar.gz |
factorio
Diffstat (limited to 'roles/factorio/files/factorio.service')
-rw-r--r-- | roles/factorio/files/factorio.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/factorio/files/factorio.service b/roles/factorio/files/factorio.service new file mode 100644 index 0000000..f7f53bb --- /dev/null +++ b/roles/factorio/files/factorio.service @@ -0,0 +1,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 |