diff --git a/app/code/Magento/Cron/README.md b/app/code/Magento/Cron/README.md index 0e9e37ff8db79646545182d24db3d75b2ce7445d..445666301ade4fcb8fdcd0303e47a49aaf832e4b 100644 --- a/app/code/Magento/Cron/README.md +++ b/app/code/Magento/Cron/README.md @@ -1,2 +1,2 @@ -Cron is a module that enables scheduling of jobs. Other modules can add cron jobs by including crontab.xml in their etc directory. The script dev/shell/cron.sh should be run periodically to trigger the Cron module to run its scheduled jobs. +Cron is a module that enables scheduling of jobs. Other modules can add cron jobs by including crontab.xml in their etc directory. The command "bin/magento cron:run" should be run periodically to trigger the Cron module to run its scheduled jobs. This module also allows administrators to tune cron options in Magento Admin. \ No newline at end of file diff --git a/dev/shell/cron.sh b/dev/shell/cron.sh deleted file mode 100755 index 08613ffb25c41faa33bbb756355d71810a758749..0000000000000000000000000000000000000000 --- a/dev/shell/cron.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# Copyright © 2015 Magento. All rights reserved. -# See COPYING.txt for license details. -# location of the php binary -if [ ! "$1" = "" ] ; then -CRONSCRIPT=$1 -else -CRONSCRIPT=pub/cron.php -fi - -PHP_BIN=`which php` - -# absolute path to magento installation -INSTALLDIR=`echo $0 | sed 's/cron\.sh//g'`"../../" - -# prepend the intallation path if not given an absolute path -if [ "$INSTALLDIR" != "" -a "`expr index $CRONSCRIPT /`" != "1" ];then - if ! ps auxwww | grep "$INSTALLDIR""$CRONSCRIPT" | grep -v grep 1>/dev/null 2>/dev/null ; then - $PHP_BIN "$INSTALLDIR""$CRONSCRIPT" & - fi -else - if ! ps auxwww | grep " $CRONSCRIPT" | grep -v grep | grep -v cron.sh 1>/dev/null 2>/dev/null ; then - $PHP_BIN $CRONSCRIPT & - fi -fi