Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 24 lines (20 sloc) 0.642 kB
537a364 @choukalos initial commit
choukalos authored
1 #!/bin/sh
2 # location of the php binary
3 if [ ! "$1" = "" ] ; then
4 CRONSCRIPT=$1
5 else
6 CRONSCRIPT=cron.php
7 fi
8
9 PHP_BIN=`which php`
10
11 # absolute path to magento installation
12 INSTALLDIR=`echo $0 | sed 's/cron\.sh//g'`
13
14 # prepend the intallation path if not given an absolute path
15 if [ "$INSTALLDIR" != "" -a "`expr index $CRONSCRIPT /`" != "1" ];then
16 if ! ps auxwww | grep "$INSTALLDIR""$CRONSCRIPT" | grep -v grep 1>/dev/null 2>/dev/null ; then
17 $PHP_BIN "$INSTALLDIR""$CRONSCRIPT" &
18 fi
19 else
20 if ! ps auxwww | grep " $CRONSCRIPT" | grep -v grep | grep -v cron.sh 1>/dev/null 2>/dev/null ; then
21 $PHP_BIN $CRONSCRIPT &
22 fi
23 fi
Something went wrong with that request. Please try again.