[erlang-questions] HEART
Dmitry Kolesnikov
dmkolesnikov@REDACTED
Wed May 13 14:02:43 CEST 2015
Hi,
You are using ‘start’ command when you start node manually but upstart script uses ‘foreground’.
Try to use start in both places. I think foreground bypassed pipe creation.
- Dmitry
> On 13 May 2015, at 14:41, Roberto Ostinelli <roberto@REDACTED> 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 <mailto:roger@REDACTED>> wrote:
> On 12 May 2015 at 18:45, Roberto Ostinelli
> <roberto.ostinelli@REDACTED <mailto: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.
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150513/9fad8e3f/attachment.htm>
More information about the erlang-questions
mailing list