Skip to content

Commit

Permalink
Update glpi-start.sh
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vladkvl13 authored Jul 20, 2023
1 parent e4d30f8 commit 1051a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glpi-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1051a4f

Please sign in to comment.