[erlang-questions] HEART

Tristan Sloughter t@REDACTED
Wed May 13 15:54:53 CEST 2015


Use remote_console instead of attach.

--
Tristan Sloughter t@REDACTED



On Wed, May 13, 2015, at 06:41 AM, Roberto Ostinelli wrote:
> Hi, Still experiencing weirdnesses though.
>
> My upstart script is:
>
> script export HOME=/root
> cd /usr/local/myapp exec bin/myapp foreground > /dev/null 2>&1 end
>     script
>
>
> When I start to attach to the app's node, I get:
>
> $ /usr/local/myapp/bin/myapp attach pong Can't access pipe directory
> /tmp//usr/local/myapp/: No such file or directory
>
>
> However, if I start my app manually:
>
> $ /usr/local/myapp/bin/myapp start
>
> Then everything works fine:
>
> $ /usr/local/cometa/bin/cometa attach pong Attaching to
> /tmp//usr/local/myapp/erlang.pipe.1 (^D to exit)
>
> (myapp@REDACTED)1>
>
>
> Can some kind soul explain to me what is going on?
>
> Thank you,
> r.
>
>
>
>
>
>
>
> On Tue, May 12, 2015 at 8:44 PM, Roger Lipscombe
> <roger@REDACTED> wrote:
>> On 12 May 2015 at 18:45, Roberto Ostinelli
>> <roberto.ostinelli@REDACTED> wrote:
>>
> Right. Unfortunately I can't find a way to oass this pid to the
> original script that starts it (using upstart).
>>
>> We use relx-generated releases with upstart. Simply run "bin/myapp
>>
foreground" from the upstart script.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150513/55de09de/attachment.htm>


More information about the erlang-questions mailing list