Permalink
Browse files

-sname and mnesia flag added to start script

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@499 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent 31c5e8b commit c7c87a4c27c819e144b92bf7679174b4d99ccf0a @klacke committed Aug 25, 2003
Showing with 15 additions and 2 deletions.
  1. BIN doc/yaws.pdf
  2. +7 −0 man/yaws.1
  3. +8 −2 scripts/yaws.ss
View
Binary file not shown.
View
@@ -52,6 +52,13 @@ in the log directory.
\fB\-x\fR
When yaws is put into trace mode using either -T or -t, traces are written to files. If we provide the -x flag, the trace will also be written to stdout.
+.TP
+\fB\-M dir\fR
+Start Mnesia in directory <dir>
+
+.TP
+\fB\-sname xxx\fR
+Start yaws as a distributed erlang node with name <xxx>
.TP
\fB\-h\fR
View
@@ -20,6 +20,8 @@ help()
echo " yaws -T -- trace http traffic"
echo " yaws -x -- trace output to stdout"
echo " yaws -v -- print version"
+ echo " yaws -M dir -- start Mnesia in dir"
+ echo " yaws -sname xxx -- start with sname xxx"
echo ""
echo " yaws -heart -- auto restart yaws if it crashes"
echo " (requires the -D switch)"
@@ -43,6 +45,7 @@ conf="";
runmod="";
sname="";
heart="";
+mnesia="";
while [ $# -gt 0 ]
do
@@ -63,6 +66,9 @@ do
trace=" -yaws trace http ";;
-x)
traceoutput=" -yaws traceoutput ";;
+ -M)
+ mnesia=" -mnesia dir '"$1"' -run mnesia start"
+ shift;;
-c)
conf=" -conf $1 "
shift;;
@@ -113,10 +119,10 @@ if [ -z "$heart" ] || [ -z "$daemon" ]; then
HEART_COMMAND="";
else
## ............................this line
- export HEART_COMMAND="${ENV_PGM} HEART=true $erl ${daemon} ${heart} -pa ${yawsdir}/ebin ${sname} ${debug} -s yaws $trace $conf $runmod";
+ export HEART_COMMAND="${ENV_PGM} HEART=true $erl ${daemon} ${heart} -pa ${yawsdir}/ebin ${sname} ${debug} -s yaws $trace $conf $runmod $mnesia";
fi
## keep this line in sync with ....^
-exec $erl ${daemon} ${heart} -pa ${yawsdir}/ebin ${sname} ${debug} -s yaws $trace $conf $runmod
+exec $erl ${daemon} ${heart} -pa ${yawsdir}/ebin ${sname} ${debug} -s yaws $trace $conf $runmod $mnesia

0 comments on commit c7c87a4

Please sign in to comment.