<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">You are using ‘start’ command when you start node manually but upstart script uses ‘foreground’. </div><div class="">Try to use start in both places. I think foreground bypassed pipe creation. </div><div class=""><br class=""></div><div class="">- Dmitry</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 13 May 2015, at 14:41, Roberto Ostinelli <<a href="mailto:roberto@widetag.com" class="">roberto@widetag.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class="">Still experiencing weirdnesses though.</div><div class=""><br class=""></div><div class="">My upstart script is:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">script</font></div><div class=""><font face="monospace, monospace" class=""><span style="white-space:pre" class=""> </span>export HOME=/root</font></div><div class=""><font face="monospace, monospace" class=""><span style="white-space:pre" class=""> </span>cd /usr/local/myapp</font></div><div class=""><font face="monospace, monospace" class=""> exec bin/myapp foreground > /dev/null 2>&1</font></div><div class=""><font face="monospace, monospace" class="">end script</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">When I start to attach to the app's node, I get:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">$ /usr/local/myapp/bin/myapp attach</font></div><div class=""><font face="monospace, monospace" class="">pong</font></div><div class=""><font face="monospace, monospace" class="">Can't access pipe directory /tmp//usr/local/myapp/: No such file or directory</font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">However, if I start my app manually:</div><div class=""><br class=""></div><div class=""><span style="font-family:monospace,monospace" class="">$ /usr/local/myapp/bin/myapp</span><span style="font-family:monospace,monospace" class=""> start</span><br class=""></div><div class=""><br class=""></div><div class="">Then everything works fine:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">$ /usr/local/cometa/bin/cometa attach</font></div><div class=""><font face="monospace, monospace" class="">pong</font></div><div class=""><font face="monospace, monospace" class="">Attaching to /tmp//usr/local/myapp/erlang.pipe.1 (^D to exit)</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">(myapp@</font><span style="font-family:monospace,monospace" class="">myapp.example</span><font face="monospace, monospace" class="">.com)1></font></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Can some kind soul explain to me what is going on?</div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">r.<br class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, May 12, 2015 at 8:44 PM, Roger Lipscombe <span dir="ltr" class=""><<a href="mailto:roger@differentpla.net" target="_blank" class="">roger@differentpla.net</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12 May 2015 at 18:45, Roberto Ostinelli<br class="">
<span class=""><<a href="mailto:roberto.ostinelli@widetag.com" class="">roberto.ostinelli@widetag.com</a>> wrote:<br class="">
> Right. Unfortunately I can't find a way to oass this pid to the original script that starts it (using upstart).<br class="">
<br class="">
</span>We use relx-generated releases with upstart. Simply run "bin/myapp<br class="">
foreground" from the upstart script.<br class="">
</blockquote></div><br class=""></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>