Permalink
Browse files

""

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@883 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent 8ff79c4 commit 4d59534e95b075f5f087745b6d3323d5534eeae6 @klacke committed May 18, 2005
Showing with 11 additions and 2 deletions.
  1. +11 −2 scripts/yaws.template
View
@@ -40,7 +40,9 @@ help()
echo " -v -- print version"
echo " -pa path -- add path"
echo " -M dir -- start Mnesia in dir"
+ echo " -proto_dist Mod -- use Mod for distrib
echo " -sname xxx -- start with sname xxx"
+ echo " -name xxx -- start with name xxx"
echo " -r mod -- call mod:start/0 at startup"
echo " -heart -- auto restart yaws if it crashes"
@@ -69,6 +71,7 @@ heart="";
xpath="";
mnesia="";
id="default";
+pdist=""
while [ $# -gt 0 ]
do
@@ -129,8 +132,14 @@ do
-sname)
sname=" -sname $1 "
shift;;
+ -name)
+ sname=" -name $1 "
+ shift;;
-heart)
heart=" -heart ";;
+ -proto_dist)
+ pdist=" -proto_dist $1 "
+ shift;;
-check)
mkdir /tmp/yaws 2> /dev/null
mkdir /tmp/yaws/${ID} 2> /dev/null
@@ -161,10 +170,10 @@ if [ -z "$heart" ] || [ -z "$daemon" ]; then
HEART_COMMAND="";
else
## ............................this line
- export HEART_COMMAND="${ENV_PGM} HEART=true \"$erl\" ${daemon} ${heart} -pa ${yawsdir}${delim}ebin ${xpath} ${sname} ${debug} -s yaws $trace $conf $runmod $mnesia";
+ export HEART_COMMAND="${ENV_PGM} HEART=true \"$erl\" ${daemon} ${heart} -pa ${yawsdir}${delim}ebin ${xpath} ${sname} ${pdist} ${debug} -s yaws $trace $conf $runmod $mnesia";
fi
## keep this line in sync with ....^
-exec "$erl" ${daemon} ${heart} -pa ${yawsdir}${delim}ebin ${xpath} ${sname} ${debug} -s yaws $trace $conf $runmod $mnesia
+exec "$erl" ${daemon} ${heart} -pa ${yawsdir}${delim}ebin ${xpath} ${sname} ${pdist} ${debug} -s yaws $trace $conf $runmod $mnesia

0 comments on commit 4d59534

Please sign in to comment.