summaryrefslogtreecommitdiff
path: root/space-station-14.service
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-11-19 19:57:04 +0100
committerBotond Hende <nettingman@gmail.com>2024-11-19 19:57:04 +0100
commitc892dc91e01cb3068255ce1aedc86d36abcab67b (patch)
treebc3c3c34e6749cfc0f6668bf885250b22a71c7e1 /space-station-14.service
parenteb0aeb75182e32eaf74efbcf37e006f1013efb08 (diff)
added systemd service file
Diffstat (limited to 'space-station-14.service')
-rw-r--r--space-station-14.service20
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