From f6fdeb258e3ef2b6fe7fafa211074e457fec6c71 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Fri, 4 Sep 2015 18:43:50 +0200 Subject: haproxy1_5 - use install_cron_job() instead of reimplementing it - Remove the OSCP cronjob when disabled. --- config/haproxy1_5/pkg/haproxy.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/haproxy1_5/pkg/haproxy.inc b/config/haproxy1_5/pkg/haproxy.inc index 5e554ffc..f539cff5 100644 --- a/config/haproxy1_5/pkg/haproxy.inc +++ b/config/haproxy1_5/pkg/haproxy.inc @@ -1647,6 +1647,8 @@ function haproxy_check_run($reload) { $useocsp = haproxy_uses_ocsp(); if ($useocsp == "true") { install_cron_job("/etc/rc.haproxy_ocsp.sh", true, "*/120"); + } else { + install_cron_job("/etc/rc.haproxy_ocsp.sh", false); } } -- cgit v1.2.3