From 0360a8b27ecf3e114e9cf8a3260c9245dff98eba Mon Sep 17 00:00:00 2001
From: Safwan Khan <safwkhan@ebay.com>
Date: Thu, 30 Apr 2015 16:30:07 -0500
Subject: [PATCH] MAGETWO-36079: Move dev/shell/cron.sh

- Removed the shell script.
---
 app/code/Magento/Cron/README.md |  2 +-
 dev/shell/cron.sh               | 25 -------------------------
 2 files changed, 1 insertion(+), 26 deletions(-)
 delete mode 100755 dev/shell/cron.sh

diff --git a/app/code/Magento/Cron/README.md b/app/code/Magento/Cron/README.md
index 0e9e37ff8db..445666301ad 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 08613ffb25c..00000000000
--- 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
-- 
GitLab