From c892dc91e01cb3068255ce1aedc86d36abcab67b Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Tue, 19 Nov 2024 19:57:04 +0100 Subject: added systemd service file --- space-station-14.service | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 space-station-14.service diff --git a/space-station-14.service b/space-station-14.service new file mode 100644 index 0000000..2d93ba5 --- /dev/null +++ b/space-station-14.service @@ -0,0 +1,20 @@ +[Unit] +Description = Space Station 14 container +After = network.target +ConditionPathExists = /srv/ss14-server + +[Service] +Type = simple +ExecStartPre = -/usr/bin/podman stop ss14-server + +ExecStart = /usr/bin/podman run \ + --rm \ + --name ss14-server \ + --net host \ + -v /srv/ss14-server:/opt/ss14/server \ + -p 1212:1212 \ + ss14-server + + +[Install] +WantedBy = default.target -- cgit v1.2.3-70-g09d2