aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy1_5
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-04 18:43:50 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-04 18:43:50 +0200
commitf6fdeb258e3ef2b6fe7fafa211074e457fec6c71 (patch)
tree3a42985bc0da0e61cddf5e414049a324099b22a1 /config/haproxy1_5
parent2f008f3427dbc4e081a7b551e416c92cac05f7f1 (diff)
downloadpfsense-packages-f6fdeb258e3ef2b6fe7fafa211074e457fec6c71.tar.gz
pfsense-packages-f6fdeb258e3ef2b6fe7fafa211074e457fec6c71.tar.bz2
pfsense-packages-f6fdeb258e3ef2b6fe7fafa211074e457fec6c71.zip
haproxy1_5 - use install_cron_job() instead of reimplementing it
- Remove the OSCP cronjob when disabled.
Diffstat (limited to 'config/haproxy1_5')
-rw-r--r--config/haproxy1_5/pkg/haproxy.inc2
1 files changed, 2 insertions, 0 deletions
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);
}
}