aboutsummaryrefslogtreecommitdiff
path: root/gerboweb.service
diff options
context:
space:
mode:
Diffstat (limited to 'gerboweb.service')
-rw-r--r--gerboweb.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/gerboweb.service b/gerboweb.service
new file mode 100644
index 0000000..8aa5210
--- /dev/null
+++ b/gerboweb.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Gerboweb server service
+Documentation=https://gitlab.com/gerbolyze/gerbolyze
+Wants=network-online.target
+Wants=nginx.service
+After=nginx.service
+RequiresMountsFor=/var/run/container/storage
+
+[Service]
+ExecStart=/usr/bin/podman run --secret=gerboweb --conmon-pidfile=%t/container-gerboweb.pid --volume=${RUNTIME_DIRECTORY}:/run/uwsgi --detach gerboweb
+ExecStop=/usr/bin/podman stop --time 2 gerboweb
+Type=forking
+PIDFile=%t/container-gerboweb.pid
+RuntimeDirectory=gerboweb-uwsgi
+
+[Install]
+WantedBy=default.target