summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/lighttpd/etc
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/lighttpd/etc')
-rw-r--r--satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.service6
-rw-r--r--satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.timer10
l---------satellit_installer/static_files/lighttpd/etc/systemd/system/timers.target.wants/slx-cert.timer1
3 files changed, 17 insertions, 0 deletions
diff --git a/satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.service b/satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.service
new file mode 100644
index 0000000..7235203
--- /dev/null
+++ b/satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Check for internal certificate expiry
+
+[Service]
+ExecStart=/opt/openslx/slx-cert --restart
+Type=oneshot
diff --git a/satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.timer b/satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.timer
new file mode 100644
index 0000000..e2153eb
--- /dev/null
+++ b/satellit_installer/static_files/lighttpd/etc/systemd/system/slx-cert.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Trigger certificate expiry check once a day
+
+[Timer]
+OnCalendar=01:14
+AccuracySec=600
+RandomizedDelaySec=600
+
+[Install]
+WantedBy=timers.target
diff --git a/satellit_installer/static_files/lighttpd/etc/systemd/system/timers.target.wants/slx-cert.timer b/satellit_installer/static_files/lighttpd/etc/systemd/system/timers.target.wants/slx-cert.timer
new file mode 120000
index 0000000..1ab9151
--- /dev/null
+++ b/satellit_installer/static_files/lighttpd/etc/systemd/system/timers.target.wants/slx-cert.timer
@@ -0,0 +1 @@
+../slx-cert.timer \ No newline at end of file