mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Supporting URLs with folder-structure in "sake -start <myprocessname> <myurl>"
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@68130 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
dcfb88b2e8
commit
83e329864a
9
sake
9
sake
@ -62,10 +62,17 @@ if [ "$1" = "-start" ]; then
|
||||
sake=`realpath $0`
|
||||
base=`realpath $base`
|
||||
|
||||
# if third argument is not explicitly given, copy from second argument
|
||||
if [ "$3" = "" ]; then
|
||||
url=$2
|
||||
else
|
||||
url=$3
|
||||
fi
|
||||
|
||||
# TODO: Give a globally unique processname by including the projectname as well
|
||||
processname=$2
|
||||
|
||||
daemon -n $processname -r -D $base --pidfile=$pidfile --stdout=$outlog --stderr=$errlog $sake $2 $3
|
||||
daemon -n $processname -r -D $base --pidfile=$pidfile --stdout=$outlog --stderr=$errlog $sake $url
|
||||
else
|
||||
echo "Service $2 seems to already be running"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user