Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 365 lines (337 sloc) 11.358 kB
21abc5b @klacke Initial revision
authored
1 #!/bin/sh
f6a5b93 @klacke ""
authored
2
28e4c73 @klacke first attempt to run properly under cygwin
authored
3 yawsdir="%yawsdir%"
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
4 vardir="%vardir%"
28e4c73 @klacke first attempt to run properly under cygwin
authored
5 erl="%erl%"
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
6 run_erl="%run_erl%"
7 to_erl="%to_erl%"
8
df7a68b @klacke set HOME if unset, this is required since some distros don't set HOME…
authored
9 # erlexec requires HOME to be set, and some distros
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
10 # run /etc/rc scripts without HOME being set
df7a68b @klacke set HOME if unset, this is required since some distros don't set HOME…
authored
11 if [ -z "$HOME" ]; then
e9344fa @klacke prepare for 1.84
authored
12 if [ `id -u` = 0 -a -d /root ]; then
1f8b315 @vinoski make "rebar compile" install under the build dir
vinoski authored
13 HOME=/root
5e1d1ec @klacke prepare for 1.82
authored
14 else
1f8b315 @vinoski make "rebar compile" install under the build dir
vinoski authored
15 HOME=/tmp
e71db24 @klacke prepare for 1.82
authored
16 fi
1f8b315 @vinoski make "rebar compile" install under the build dir
vinoski authored
17 export HOME
df7a68b @klacke set HOME if unset, this is required since some distros don't set HOME…
authored
18 fi
19
28e4c73 @klacke first attempt to run properly under cygwin
authored
20 case `uname` in
21 CYGWIN*)
4607990 @klacke cygwin support
authored
22 yawsdir=`cygpath -m $yawsdir`
0be3c7e @klacke untabified all of yaws
authored
23 werl="%werl%"
4607990 @klacke cygwin support
authored
24 delim=/;;
28e4c73 @klacke first attempt to run properly under cygwin
authored
25 *)
26 delim=/
27 esac
21abc5b @klacke Initial revision
authored
28
29
844fe5a Added support for the '-heart' switch.
Tobbe Tornquist authored
30 ENV_PGM=`which env`
31
32
21abc5b @klacke Initial revision
authored
33 help()
34 {
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
35 echo "usage: "
36 echo ""
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
37 echo
c9cd304 @klacke git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk…
authored
38 echo " yaws -i | --interactive -- interactive (no daemon) mode"
39 echo " yaws -w | --winteractive -- cygwin interactive (werl) "
40 echo " yaws --daemon -- daemon mode"
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
41
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
42 echo ""
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
43
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
44 echo ""
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
45 echo " Auxiliary flags for the daemon: "
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
46 echo " --id Id -- set system id"
a80cfee @vinoski add --nodebug option
vinoski authored
47 echo " --debug -- debug mode"
48 echo " --nodebug -- turn off debug mode"
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
49 echo " --conf File -- set config file"
50 echo " --tracetraf -- trace traffic"
51 echo " --tracehttp -- trace http traffic"
52 echo " --traceout -- trace output to stdout"
53 echo " --version -- print version"
54 echo " --pa path -- add load path"
55 echo " --mnesiadir dir -- start Mnesia in dir"
56 echo " --proto_dist Mod -- use Mod for distrib"
57 echo " --sname xxx -- start with sname xxx"
58 echo " --name xxx -- start with name xxx"
59 echo " --runmod mod -- call mod:start/0 at startup"
60 echo " --heart -- auto restart yaws if it crashes"
61 echo " --heart-restart=C,T -- allow C heart restarts in T seconds"
62 echo " --erlarg X -- pass argument X to $erl"
63 echo " --setcookie X -- set an erlang cookie"
64 echo " --run_erl X -- use run_erl with pipe-id X"
65 echo " --to_erl X -- connect to pipe-id X"
66 echo " --disable-kpoll -- pass +K false to erlang"
ee35df4 @vinoski add --umask option to yaws script
vinoski authored
67 echo " --umask umaskval -- set process umask to umaskval"
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
68 echo ""
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
69
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
70 echo "ctl functions ... "
206b4d9 @vinoski delete chatty messages, make yaws_server upgrade-friendly (Klarna)
vinoski authored
71 echo " yaws --hup [--id ID] -- hup the daemon, reload conf"
72 echo " yaws --stop [--id ID] -- stop the daemon "
73 echo " yaws --debug-dump [--id ID] -- produce a debug dump "
74 echo " yaws --status [--id ID] -- query the daemon status "
75 echo " yaws --load Modules -- load modules "
76 echo " yaws --ls -- list Yaws nodes and their status"
77 echo " yaws --ctltrace traffic|http -- toggle trace of running daemon"
78 echo " yaws --check [--verbose] [--id ID] YawsFile [IncDirs] -- test compile YawsFile"
79 echo " yaws --wait-started[=secs] [--id ID] -- wait for daemon to be ready"
80 echo " yaws --stats [--id ID] -- show daemon statistics"
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
81 exit 1
21abc5b @klacke Initial revision
authored
82 }
dc00e52 @klacke postvar bug by hal snyder, added yaws_api:query_url/1 added the id su…
authored
83
84
21abc5b @klacke Initial revision
authored
85
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
86 debug=""
87 daemon=""
88 interactive=""
89 trace=""
90 conf=""
91 runmod=""
92 sname=""
93 heart=""
94 xpath=""
95 mnesia=""
96 id=""
4d59534 @klacke ""
authored
97 pdist=""
37e9d70 @klacke -erlarg patch by Fredrik Thulin
authored
98 erlarg=""
a90bd68 @klacke added kpoll as default
authored
99 kpoll=true
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
100 call_wait_started=""
206b4d9 @vinoski delete chatty messages, make yaws_server upgrade-friendly (Klarna)
vinoski authored
101 check=""
102 checkargs=""
103 verbose=""
ddf3bee @klacke preparing for 1.78
authored
104 program=$0
105
106 wait_started() {
107 i=0
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
108 count=$1
109 while [ $i -lt $count ]; do
ddf3bee @klacke preparing for 1.78
authored
110 sleep 1
111 i=`expr $i + 1`
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
112 idarg="--id ${id:-default}"
113 ${program} ${idarg} --status 2>&1 > /dev/null
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
114 [ $? = 0 ] && exit 0
ddf3bee @klacke preparing for 1.78
authored
115 done
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
116 echo "No yaws system responding for id=$id"
ddf3bee @klacke preparing for 1.78
authored
117 exit 1
118 }
119
6949c22 @vinoski set HEART_COMMAND to allow a maximum of 5 restarts within any 60 seco…
vinoski authored
120 now=`date -u +%s`
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
121 restarts=1
122 starttime=$now
6949c22 @vinoski set HEART_COMMAND to allow a maximum of 5 restarts within any 60 seco…
vinoski authored
123 if [ "$HEART" = true ]; then
124 # we were restarted by heart, make sure we haven't reached our restart count
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
125 # if we get $YAWS_HEART_COUNT restarts within $YAWS_HEART_SECS seconds, we
126 # exit completely
127 # if both are 0, disable restart checking and just always restart
128 if [ $YAWS_HEART_COUNT -ne 0 -o $YAWS_HEART_SECS -ne 0 ]; then
129 timediff=`expr $now - $YAWS_HEART_START`
130 if [ $timediff -le $YAWS_HEART_SECS ]; then
131 if [ $YAWS_HEART_RESTARTS -eq $YAWS_HEART_COUNT ]; then
132 echo $YAWS_HEART_COUNT restarts attempted within $YAWS_HEART_SECS seconds, exiting
133 exit 1
134 else
135 # we haven't reached the restart max count yet, but we're still
136 # within the $YAWS_HEART_SECS second window so increment the counter
137 # but keep the same start time
138 restarts=`expr $YAWS_HEART_RESTARTS + 1`
139 starttime=$YAWS_HEART_START
140 fi
6949c22 @vinoski set HEART_COMMAND to allow a maximum of 5 restarts within any 60 seco…
vinoski authored
141 fi
142 fi
143 fi
9194d12 @vinoski handle multi-word arguments for heart restart command
vinoski authored
144 HEART_COMMAND="$ENV_PGM HEART=true YAWS_HEART_RESTARTS=$restarts YAWS_HEART_START=$starttime $program"
145 # This loop quotes arguments containing whitespace so they can be passed
146 # properly to the next heart restart
147 for arg in "$@"; do
148 ws=`( set X $arg ; echo $# )`
149 if [ "$ws" -gt 2 ]; then
150 HEART_COMMAND="$HEART_COMMAND '$arg'"
151 else
152 HEART_COMMAND="$HEART_COMMAND $arg"
153 fi
154 done
6949c22 @vinoski set HEART_COMMAND to allow a maximum of 5 restarts within any 60 seco…
vinoski authored
155 export HEART_COMMAND
156
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
157 while [ $# -gt 0 ]
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
158 do
159 arg=$1
160 shift;
161 case $arg in
162 -i|--interactive)
0be3c7e @klacke untabified all of yaws
authored
163 interactive="true";
164 debug=" -yaws debug ";
165 daemon="";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
166 -w|--winteractive)
0be3c7e @klacke untabified all of yaws
authored
167 interactive="true";
168 debug=" -yaws debug ";
169 daemon="";
170 erl=$werl;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
171 -D|--daemon)
0be3c7e @klacke untabified all of yaws
authored
172 daemon=" -detached ";;
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
173 --wait-started=*)
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
174 call_wait_started=`echo $arg | sed -e 's/--wait-started=//'`
16ede48 @vinoski increase default maximum wait-started time
vinoski authored
175 num=`expr "$call_wait_started" : "\([0-9]*\)"`
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
176 if [ "$num" != "$call_wait_started" ]; then
177 echo error: argument to --wait-started is $call_wait_started, not a number
178 exit 1
179 fi;;
ddf3bee @klacke preparing for 1.78
authored
180 --wait-started)
16ede48 @vinoski increase default maximum wait-started time
vinoski authored
181 call_wait_started=30;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
182 -d|--debug)
0be3c7e @klacke untabified all of yaws
authored
183 debug=" -boot start_sasl -yaws debug ";;
a80cfee @vinoski add --nodebug option
vinoski authored
184 --nodebug)
185 debug="";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
186 -t|--tracetraf)
0be3c7e @klacke untabified all of yaws
authored
187 trace=" -yaws trace traffic ";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
188 -T|--tracehttp)
0be3c7e @klacke untabified all of yaws
authored
189 trace=" -yaws trace http ";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
190 -I|--id)
0be3c7e @klacke untabified all of yaws
authored
191 id=$1
192 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
193 -x|--traceout)
0be3c7e @klacke untabified all of yaws
authored
194 traceoutput=" -yaws traceoutput ";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
195 --trace)
0be3c7e @klacke untabified all of yaws
authored
196 traceoutput=" -yaws traceoutput ";
197 trace=" -yaws trace traffic ";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
198 -M|--mnesiadir)
91a5018 @klacke quote patch for mnesiadir by Richard Bucker
authored
199 mnesia=" -mnesia dir '\"$1\"' -run mnesia start"
0be3c7e @klacke untabified all of yaws
authored
200 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
201 -c|--conf)
0be3c7e @klacke untabified all of yaws
authored
202 conf=" -conf $1 "
203 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
204 -pa|--pa)
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
205 xpath=" $xpath -pa $1 "
0be3c7e @klacke untabified all of yaws
authored
206 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
207 -r|--runmod)
0be3c7e @klacke untabified all of yaws
authored
208 runmod=" -runmod $1 "
209 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
210 -h|--hup)
0be3c7e @klacke untabified all of yaws
authored
211 ex="$erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl hup";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
212 -s|--stop)
0be3c7e @klacke untabified all of yaws
authored
213 ex="$erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl stop";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
214 -ls|--ls)
0be3c7e @klacke untabified all of yaws
authored
215 ex="$erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl ls";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
216 -S|--status)
0be3c7e @klacke untabified all of yaws
authored
217 ex="$erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl status";;
eedaca5 @oliv3 yaws_ctl --stats added
oliv3 authored
218 --stats)
219 ex="$erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl stats";;
713e35b @klacke --running-config flag to query a running yaws for its config
authored
220 --running-config)
221 ex="$erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl running_config";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
222 -load|--load)
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
223 loadid=${id:-default}
224 $erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl load $* $loadid
0be3c7e @klacke untabified all of yaws
authored
225 exit 0;;
5207102 @klacke Added debug dump functionality
authored
226 --debug-dump)
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
227 ddid=${id:-default}
228 $erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl debug_dump $ddid
5207102 @klacke Added debug dump functionality
authored
229 exit 0;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
230 -j|--ctltrace)
0be3c7e @klacke untabified all of yaws
authored
231 ex="$erl -noshell -pa ${yawsdir}${delim}ebin -s yaws_ctl trace $1"
232 shift;;
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
233 -v|--version)
0be3c7e @klacke untabified all of yaws
authored
234 exec $erl -noshell -pa ${yawsdir}${delim}ebin -s yaws printversion;
235 exit 0;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
236 --sname|-sname)
0be3c7e @klacke untabified all of yaws
authored
237 sname=" -sname $1 "
238 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
239 -name|--name)
0be3c7e @klacke untabified all of yaws
authored
240 sname=" -name $1 "
241 shift;;
a90bd68 @klacke added kpoll as default
authored
242 --disable-kpoll)
243 kpoll=false;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
244 -heart|--heart)
0be3c7e @klacke untabified all of yaws
authored
245 heart=" -heart ";;
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
246 --heart-restart=*)
247 vals=`echo $arg | sed -e 's/--heart-restart=//'`
248 saveifs="$IFS"
249 IFS=,
250 var='YAWS_HEART_COUNT'
251 for v in $vals; do
252 eval "$var=$v"
253 var='YAWS_HEART_SECS'
254 done
0e5ebd2 @vinoski improved checking of --heart-restart arguments
vinoski authored
255 num=`expr "$YAWS_HEART_COUNT" : '\([0-9]*\)'`
256 if [ -z "$num" -o "$num" != "$YAWS_HEART_COUNT" ]; then
257 echo error: count argument to --heart-restart is '"'$YAWS_HEART_COUNT'"': not a number
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
258 exit 1
259 fi
0e5ebd2 @vinoski improved checking of --heart-restart arguments
vinoski authored
260 num=`expr "$YAWS_HEART_SECS" : '\([0-9]*\)'`
261 if [ -z "$num" -o "$num" != "$YAWS_HEART_SECS" ]; then
262 echo error: time argument to --heart-restart is '"'$YAWS_HEART_SECS'"': not a number
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
263 exit 1
264 fi
265 IFS="$saveifs"
266 heart=" -heart ";;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
267 -proto_dist|--proto_dist)
0be3c7e @klacke untabified all of yaws
authored
268 pdist=" -proto_dist $1 "
269 shift;;
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
270 -setcookie|--setcookie)
271 erlarg="$erlarg -setcookie $1 "
272 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
273 -erlarg|--erlarg)
0be3c7e @klacke untabified all of yaws
authored
274 erlarg="$erlarg $1 "
275 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
276 -check|--check)
206b4d9 @vinoski delete chatty messages, make yaws_server upgrade-friendly (Klarna)
vinoski authored
277 check="$erl -noshell -pa ${yawsdir}${delim}ebin $xpath -s yaws_ctl check";;
278 --verbose)
279 verbose=true;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
280 --to_erl)
0be3c7e @klacke untabified all of yaws
authored
281 TO_ERL=yes
282 PIPE_DIR="${vardir}/run/yaws/pipe/$1"
283 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
284 --run_erl)
0be3c7e @klacke untabified all of yaws
authored
285 RUN_ERL=yes
286 daemon=""
287 PIPE_DIR="${vardir}/run/yaws/pipe/$1"
288 LOG_DIR="${vardir}/log/yaws/erlang-log/$1"
289 shift;;
ee35df4 @vinoski add --umask option to yaws script
vinoski authored
290 --umask)
291 umask $1
292 shift;;
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
293 *)
206b4d9 @vinoski delete chatty messages, make yaws_server upgrade-friendly (Klarna)
vinoski authored
294 if [ -z "$check" ]; then
295 help
296 else
297 checkargs="$checkargs $arg "
298 fi
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
299 esac
21abc5b @klacke Initial revision
authored
300 done
2ba5805 @vinoski add new --heart-restart option to allow control over heart restarts
vinoski authored
301 YAWS_HEART_COUNT=${YAWS_HEART_COUNT:-5}
302 YAWS_HEART_SECS=${YAWS_HEART_SECS:-60}
303 export YAWS_HEART_COUNT YAWS_HEART_SECS
21abc5b @klacke Initial revision
authored
304
88355a3 @vinoski * Document the --wait-started option for the yaws script
vinoski authored
305 [ -n "$call_wait_started" ] && wait_started $call_wait_started
dc00e52 @klacke postvar bug by hal snyder, added yaws_api:query_url/1 added the id su…
authored
306
206b4d9 @vinoski delete chatty messages, make yaws_server upgrade-friendly (Klarna)
vinoski authored
307 if [ -n "$check" ]; then
308 checkid=${id:-default}
309 set $checkargs
310 check="$check $checkid $checkargs"
311 mkdir ${HOME}/.yaws/yaws 2> /dev/null
312 mkdir ${HOME}/.yaws/yaws/$checkid 2> /dev/null
313 if [ -n "$verbose" ]; then
314 out=`exec $check`
315 if [ "$?" = "0" ]; then
316 [ -n "$out" ] && echo "$out"
317 echo "$1" ok
318 exit 0
319 fi
320 echo "$out"
321 exit 1
322 else
323 exec $check
324 fi
325 fi
326
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
327 if [ -n "$ex" ]; then
328 [ -n "$id" ] && execid=$id || execid=default
329 exec $ex $execid
dc00e52 @klacke postvar bug by hal snyder, added yaws_api:query_url/1 added the id su…
authored
330 exit 0
331 fi
332
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
333 if [ -n "$TO_ERL" ]; then
334 $to_erl $PIPE_DIR/
335 exit 0
336 fi
337
338 if [ -n "$RUN_ERL" ]; then
339 if [ ! -d $LOG_DIR ]; then
0be3c7e @klacke untabified all of yaws
authored
340 mkdir -p $LOG_DIR
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
341 fi
342 if [ ! -d $PIPE_DIR ]; then
0be3c7e @klacke untabified all of yaws
authored
343 mkdir -p $PIPE_DIR
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
344 fi
345 RUN_ERL="$run_erl -daemon $PIPE_DIR/ $LOG_DIR"
346 else
347 RUN_ERL="eval"
348 fi
349
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
350 if [ -n "$id" ]; then
351 id="-yaws id $id"
92bafb4 @klacke removed the ability change userid, also stopped writing to /tmp/yaws …
authored
352 fi
dc00e52 @klacke postvar bug by hal snyder, added yaws_api:query_url/1 added the id su…
authored
353
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
354 trace="$trace $traceoutput"
82d6e29 @klacke added -x flag for tty trace and did the 1.3 release
authored
355
28972a3 @klacke run_erl to_erl support patch from Mats Cronquist
authored
356 [ "$run_erl" = "eval" ] && [ -z "$daemon" ] && [ -z "$interactive" ] && help
357
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
358 XEC="$daemon $heart +K $kpoll -pa ${yawsdir}${delim}ebin $xpath $sname $pdist $erlarg $debug -run yaws $trace $conf $runmod $mnesia $id"
38fb85e @klacke ""
authored
359
f22e6e8 Fixed heart bug
Johan Bevemyr authored
360 if [ -z "$heart" ] || [ -z "$daemon" ]; then
6949c22 @vinoski set HEART_COMMAND to allow a maximum of 5 restarts within any 60 seco…
vinoski authored
361 unset HEART_COMMAND
844fe5a Added support for the '-heart' switch.
Tobbe Tornquist authored
362 fi
363
d63642e @vinoski do not pass the --id option if the default id is used
vinoski authored
364 $RUN_ERL "exec $erl $XEC"
Something went wrong with that request. Please try again.