summaryrefslogtreecommitdiffhomepage
path: root/debian/webserver.service
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-17 15:45:24 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-17 15:45:24 +0200
commitf4c9b8da6fae5718b01fa871083f7f72d27b0f96 (patch)
tree08e3ebd1794aac2eefb7219a50fddfd3832d1f51 /debian/webserver.service
parent7cf4d1d8fb174a95b149deded4d93c33d46409cb (diff)
Restart webserver once a week for cert reloading
Diffstat (limited to 'debian/webserver.service')
-rw-r--r--debian/webserver.service4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/webserver.service b/debian/webserver.service
index 511bd6d..7834650 100644
--- a/debian/webserver.service
+++ b/debian/webserver.service
@@ -7,6 +7,10 @@ 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