From 6f1b52d393bed4af293044f34bf95cd00659a11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Ren=C3=A9=20Sch=C3=A4dler?= Date: Wed, 13 Nov 2013 11:59:58 +0100 Subject: [PATCH] Serve cached gzipped reports on port 81 --- bsp/default/root_file_system/etc/rc.local.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl index 52eecf3..26f10d6 100755 --- a/bsp/default/root_file_system/etc/rc.local.tpl +++ b/bsp/default/root_file_system/etc/rc.local.tpl @@ -18,6 +18,9 @@ ntpd -p ${NTPD_IP} mkdir /tmp/crawldata httpd -h /tmp/crawldata +# serve the 30s-cached output of "report.sh gzip" on port 81 with max 1 request/s +/etc/serve.sh 81 1 "/etc/cache.sh 30 /etc/report.sh gzip" + touch /tmp/started exit 0