From 1051a4f1cf3ba1a4857f2d48a7d5f1575ae6fb7b Mon Sep 17 00:00:00 2001 From: vladkvl13 <66673141+vladkvl13@users.noreply.github.com> Date: Thu, 20 Jul 2023 08:31:31 +0300 Subject: [PATCH] Update glpi-start.sh When the container starts, this command append the line every time. After 13 months of daily container restarts (because of bareos backup), whe have /etc/cron.d/glpi with more than 500+ line of similar crons. This make a critical CPU utilize on server. After changes all works fine. --- glpi-start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glpi-start.sh b/glpi-start.sh index a3fee580..562c79fc 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -55,7 +55,7 @@ else fi #Add scheduled task by cron and enable -echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" >> /etc/cron.d/glpi +echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" > /etc/cron.d/glpi #Start cron service service cron start