From 93ec99f21fb433c34b880f732076b25a40ba1cd1 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sun, 4 Apr 2021 07:39:46 +0200 Subject: [PATCH] new: [host] add cron to ``mirror-dir-check`` call Signed-off-by: Valentin Lab --- precise/host/hooks/install.d/95-checks.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/precise/host/hooks/install.d/95-checks.sh b/precise/host/hooks/install.d/95-checks.sh index e1918e6..4b8bd4c 100755 --- a/precise/host/hooks/install.d/95-checks.sh +++ b/precise/host/hooks/install.d/95-checks.sh @@ -3,3 +3,15 @@ ## REQUIRES: 0k-manage mail ln -sf /opt/apps/0k-manage/src/etc/cron.hourly/check-* /etc/cron.hourly/ + + +ln -sf /opt/apps/0k-charms/rsync-backup/resources/bin/mirror-dir-check /usr/local/sbin/ + + +cat < /etc/cron.d/mirror-dir-check +SHELL=/bin/bash +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +35 * * * * root mirror-dir-check -d "core-06.0k.io:10023" -n '12 hours' | logger -t mirror-dir-check + +EOF \ No newline at end of file