diff options
Diffstat (limited to 'satellit_installer/static_files/lighttpd/etc/systemd/system')
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 |