Brilliant - works like a charm. Thanks a lot<br><br>I have a few stupid questions<div><br></div><div> - where does erlang standard output go to?</div><div> - where do launchd error messages go to?</div><div> - does this keep alive stuff and run at *really* work</div>
<div> ie does it start the erlang node on reboot</div><div> a quick test was pretty encouraging</div><div><br></div><div> (so you don't need the heartbeat stuff on a mac just use launchd :-)</div><div><br>
</div><div>Cheers</div><div><br></div><div>/Joe </div><div><br><br><div class="gmail_quote">On Sat, Feb 23, 2013 at 11:37 AM, Tony Rogvall <span dir="ltr"><<a href="mailto:tony@rogvall.se" target="_blank">tony@rogvall.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Here is the plist need to start rfzone, I guess you can modify it to start your stuff.<div>
<br><div>( I probably stole it from somewhere :-)</div><div><div><br></div><div>/Tony</div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?></div><div><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"</div>
<div> "<a href="http://www.apple.com/DTDs/PropertyList-1.0.dtd" target="_blank">http://www.apple.com/DTDs/PropertyList-1.0.dtd</a>"></div><div><plist version="1.0"></div><div> <dict></div>
<div> <key>Label</key></div><div> <string>se.seazone.rfzone</string></div><div> <key>EnvironmentVariables</key></div><div> <dict></div><div> <key>DYLD_LIBRARY_PATH</key></div>
<div> <string>/opt/local/lib:$DYLD_LIBRARY_PATH</string></div><div> <key>ERL_LIBS</key></div><div> <string>/Users/%USER%/erlang</string></div><div> </dict></div>
<div> <key>ProgramArguments</key></div><div> <array></div><div> <string>/opt/local/bin/erl</string></div><div> <string>+Bd</string></div><div> <string>-noinput</string></div>
<div> <string>-config</string></div><div> <string>/Users/%USER%/erlang/rfzone/sys</string></div><div> <string>-sname</string></div><div> <string>telld</string></div>
<div> <string>-s</string></div><div> <string>rfzone</string></div><div> </array></div><div> <key>UserName</key></div><div> <string>%USER%</string></div>
<div> <key>StandardOutPath</key></div><div> <string>/dev/null</string></div><div> <key>StandardErrorPath</key></div><div> <string>/dev/null</string></div><div> <key>RunAtLoad</key></div>
<div> <true/></div><div> <key>KeepAlive</key></div><div> <true/></div><div> </dict></div><div></plist></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br>
<div><div><div class="h5"><div>On 22 feb 2013, at 19:31, Joe Armstrong <<a href="mailto:erlang@gmail.com" target="_blank">erlang@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">
<div>This is a mac mountain lion specific question</div><div><br></div>The subject line says it all.<div><br></div><div>1) I give some magic command</div><div><br></div><div>> launchctl load ~/Library/LaunchAgents/joe.experiment.plist</div>
<div><br></div><div>This launches erlang/cowboy "on demand"</div><div><br></div><div>2) I fetch a web page from "<a href="http://localhost:11234/" target="_blank">http://localhost:11234</a>"</div><div>
<br></div><div>Erlang starts and starts cowboy</div>
<div><br></div><div>Anybody know what the magic stuff in joe.experiments.plist is?</div><div> </div><div>Cheers</div><div><br></div><div>/Joe</div><div><br></div></div></div><div class="im">
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></blockquote></div><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div><span style="color:rgb(51,51,51);font-family:Geneva,Arial,Helvetica,sans-serif;font-size:12px">"Installing applications can lead to corruption over time. </span><span style="color:rgb(51,51,51);font-family:Geneva,Arial,Helvetica,sans-serif;font-size:12px">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div>
<div><span style="color:rgb(51,51,51);font-family:Geneva,Arial,Helvetica,sans-serif;font-size:12px"><br></span></div></span><br>
</div>
<br></div></div></div></div></blockquote></div><br></div>