Skip to content

HTTPS clone URL

Subversion checkout URL

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