Last active
June 20, 2018 07:08
-
-
Save sergeycherepanov/6f5070f849b247c0afaca6ac47f20271 to your computer and use it in GitHub Desktop.
magento2 crontab здорового человека
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/5 * * * * /usr/bin/flock -w 10 -x /tmp/magento.cron.lock /bin/bash -c "nice -n 19 ionice -c2 -n7 /usr/bin/php7.0 /var/www/current/bin/magento cron:run 2>&1 | awk '{ print strftime(\"[\%Y-\%m-\%d \%H:\%M:\%S]\"), \$0 }' | tee -a /var/www/current/var/log/magento.cron.log; echo 'Complete' | awk '{ print strftime(\"[\%Y-\%m-\%d \%H:\%M:\%S]\"), \$0 }' | tee -a /var/www/current/var/log/magento.cron.log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment