summaryrefslogtreecommitdiffhomepage
path: root/debian/webserver.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/webserver.service')
-rw-r--r--debian/webserver.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/webserver.service b/debian/webserver.service
new file mode 100644
index 0000000..7834650
--- /dev/null
+++ b/debian/webserver.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Webserver
+After=network.target
+
+[Service]
+Type=simple
+# Restart=always
+ExecStart=/usr/bin/webserver -c /etc/webserver.conf
+
+# Restart once a week, maybe certificates have changed
+Restart=always
+RuntimeMaxSec=604800
+
+# webserver will lower privileges to www-data:www-data
+#User=www-data
+#Group=www-data
+
+[Install]
+WantedBy=multi-user.target