From ab946b6e10d2b5ed731d3764488f5f387de93919 Mon Sep 17 00:00:00 2001 From: Monocots Date: Tue, 25 Oct 2022 15:31:40 +0000 Subject: [PATCH] Randomize minute of nighttime BTS cronjob Don't have all the BTS hit the servers at the same time (if we do opkg update, for example) --- modules/rhizo_base/templates/rhizomatica.cron.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/rhizo_base/templates/rhizomatica.cron.erb b/modules/rhizo_base/templates/rhizomatica.cron.erb index 08e336b..b3e119b 100644 --- a/modules/rhizo_base/templates/rhizomatica.cron.erb +++ b/modules/rhizo_base/templates/rhizomatica.cron.erb @@ -84,7 +84,8 @@ PYTHONPATH=$PYTHONPATH:/var/rhizomatica/rccn 31 5 * * * root /home/rhizomatica/bin/get_ip.sh # Jobs to run on the BTS - 15 3 * * * root /var/SysmoBTS/maint.sh +#21 * * * * root /var/SysmoBTS/maint.sh + <%= scope.function_fqdn_rand([59]) %> 3 * * * root /var/SysmoBTS/maint.sh # Check if FS or NTIB needs restart 30 2-5 * * * root /home/rhizomatica/bin/check_dirty.sh