From 56991aa7d6fba4cf1afd0e6d7f770f1272ebbf54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 8 Jan 2019 15:53:43 +0100 Subject: Try to fix goaccess cron not running --- virtual/eldiron.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index 62b8364..b9dba3f 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix @@ -663,12 +663,14 @@ stats = domain: conf: let d = pkgs.writeScriptBin "stats-${domain}" "${pkgs.gnused}/bin/sed -n '/\\['$(LC_ALL=C ${pkgs.coreutils}/bin/date -d yesterday +'%d\\/%b\\/%Y')'/ p' /var/log/httpd/access_log-${domain} | ${pkgs.goaccess}/bin/goaccess -o /var/lib/goaccess/${domain}/index.html -p ${conf}"; in "${d}/bin/stats-${domain}"; + # FIXME: running several goaccess simultaneously seems to be + # bugged? in [ "5 0 * * * root ${stats "aten.pro" ./packages/aten_goaccess.conf}" - "5 0 * * * root ${stats "ludivinecassal.com" ./packages/ludivinecassal_goaccess.conf}" - "5 0 * * * root ${stats "piedsjaloux.fr" ./packages/piedsjaloux_goaccess.conf}" - "5 0 * * * root ${stats "osteopathe-cc.fr" ./packages/chloe_goaccess.conf}" - "5 0 * * * root ${stats "connexionswing.com" ./packages/connexionswing_goaccess.conf}" + "6 0 * * * root ${stats "ludivinecassal.com" ./packages/ludivinecassal_goaccess.conf}" + "7 0 * * * root ${stats "piedsjaloux.fr" ./packages/piedsjaloux_goaccess.conf}" + "8 0 * * * root ${stats "osteopathe-cc.fr" ./packages/chloe_goaccess.conf}" + "9 0 * * * root ${stats "connexionswing.com" ./packages/connexionswing_goaccess.conf}" ]; }; -- cgit v1.2.3