diff options
-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 |