From 89402b67be640e7e3629e694b2fdeff26b24b9a4 Mon Sep 17 00:00:00 2001
From: Rolf Niepraschk <Rolf.Niepraschk@ptb.de>
Date: Wed, 11 Nov 2020 08:21:17 +0100
Subject: [PATCH] systemd service

---
 webapps-deliverer.service | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 webapps-deliverer.service

diff --git a/webapps-deliverer.service b/webapps-deliverer.service
new file mode 100644
index 0000000..ba1350a
--- /dev/null
+++ b/webapps-deliverer.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Delivering file contents of the vaclab web applications.
+After=network.target
+
+[Service]
+User=wwwrun
+Type=simple
+StandardOutput=null
+StandardError=null
+Restart=no
+WorkingDirectory=/usr/local/share/webapps-deliverer
+ExecStart=/bin/bash -l -c 'source bin/activate;./server'
+
+[Install]
+WantedBy=multi-user.target
-- 
GitLab