#!/bin/sh
LOG=$HOME/app/tmp/php.log

cd `dirname $0`
if [ "$1" = "taskq" ] ; then
    echo "Running in the background."
	php -d error_log=$LOG -f index.php -- $* >/dev/null 2>&1 &
else
	exec php -d error_log=$LOG -f index.php -- $*
fi
