<div dir="ltr">Hi,<div>Still experiencing weirdnesses though.</div><div><br></div><div>My upstart script is:</div><div><br></div><div><div><font face="monospace, monospace">script</font></div><div><font face="monospace, monospace"><span style="white-space:pre"> </span>export HOME=/root</font></div><div><font face="monospace, monospace"><span style="white-space:pre"> </span>cd /usr/local/myapp</font></div><div><font face="monospace, monospace"> exec bin/myapp foreground > /dev/null 2>&1</font></div><div><font face="monospace, monospace">end script</font></div></div><div><br></div><div><br></div><div>When I start to attach to the app's node, I get:</div><div><br></div><div><div><font face="monospace, monospace">$ /usr/local/myapp/bin/myapp attach</font></div><div><font face="monospace, monospace">pong</font></div><div><font face="monospace, monospace">Can't access pipe directory /tmp//usr/local/myapp/: No such file or directory</font></div></div><div><br></div><div><br></div><div>However, if I start my app manually:</div><div><br></div><div><span style="font-family:monospace,monospace">$ /usr/local/myapp/bin/myapp</span><span style="font-family:monospace,monospace"> start</span><br></div><div><br></div><div>Then everything works fine:</div><div><br></div><div><div><font face="monospace, monospace">$ /usr/local/cometa/bin/cometa attach</font></div><div><font face="monospace, monospace">pong</font></div><div><font face="monospace, monospace">Attaching to /tmp//usr/local/myapp/erlang.pipe.1 (^D to exit)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">(myapp@</font><span style="font-family:monospace,monospace">myapp.example</span><font face="monospace, monospace">.com)1></font></div></div><div><br></div><div><br></div><div>Can some kind soul explain to me what is going on?</div><div><br></div><div>Thank you,</div><div>r.<br><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 12, 2015 at 8:44 PM, Roger Lipscombe <span dir="ltr"><<a href="mailto:roger@differentpla.net" target="_blank">roger@differentpla.net</a>></span> wrote:<br><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>
<span class=""><<a href="mailto:roberto.ostinelli@widetag.com">roberto.ostinelli@widetag.com</a>> wrote:<br>
> Right. Unfortunately I can't find a way to oass this pid to the original script that starts it (using upstart).<br>
<br>
</span>We use relx-generated releases with upstart. Simply run "bin/myapp<br>
foreground" from the upstart script.<br>
</blockquote></div><br></div>