diff options
author | Botond Hende <nettingman@gmail.com> | 2024-11-19 19:57:04 +0100 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-11-19 19:57:04 +0100 |
commit | c892dc91e01cb3068255ce1aedc86d36abcab67b (patch) | |
tree | bc3c3c34e6749cfc0f6668bf885250b22a71c7e1 | |
parent | eb0aeb75182e32eaf74efbcf37e006f1013efb08 (diff) |
added systemd service file
-rw-r--r-- | space-station-14.service | 20 |
1 files changed, 20 insertions, 0 deletions
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 |