<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Steve, again you're right.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
The bundle isn't in /path/newrelic/. It's in /usr/bin/ (run which bundle and got that). </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
Edited my upstart job to: </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">..</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
chdir path/newrelic</div><div class="gmail_default" style="font-family:tahoma,sans-serif">exec /usr/bin/bundle exec ./bin/newrelic_rs</div><div class="gmail_default" style="font-family:tahoma,sans-serif">..</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Started the job and it's working!</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
Sorry about the dumb question, I'm just a newbie with Upstart. I'm running CentOS 6.3 that's why (I think) don't have the latest version of Upstart. Anyway, it's working and thanks again!</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 February 2014 16:36, Steve Langasek <span dir="ltr"><<a href="mailto:steve.langasek@ubuntu.com" target="_blank">steve.langasek@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Tue, Feb 18, 2014 at 04:17:16PM -0300, Mariano González wrote:<br>
> Steve<br>
<br>
> Tried what you suggested, newrelic_rs_dfw_test.conf:<br>
<br>
> # Upstart script<br>
<br>
> start on runlevel [2345]<br>
> stop on runlevel [016]<br>
<br>
> respawn<br>
<br>
> chdir /opt/turner/services/newrelic/newrelic_rs_dfw/<br>
<br>
> exec bundle exec bin/newrelic_rs<br>
<br>
</div>That's not what I suggested.  I wrote:<br>
<br>
  exec ./bundle exec bin/newrelic_rs<br>
<br>
I don't think this 'bundle' command is on the system path.<br>
<br>
> init (upstart 0.6.5)<br>
<br>
Ok.  You're quite a few upstart revisions - and almost two Ubuntu LTSes -<br>
behind.  I would certainly recommend upgrading to Ubuntu 12.04 if you can,<br>
which would give you the upstart job logging support.<br>
<div class=""><br>
> Run the bundle from the right folder:<br>
<br>
> [root@server newrelic_rs_dfw]# pwd<br>
> /path/newrelic/newrelic_rs_dfw<br>
> [root@server newrelic_rs_dfw]# bundle exec ./bin/newrelic_rs<br>
> [Tue Feb 18 19:13:23 UTC 2014] WARN: SSL is disabled by default when using<br>
> Ruby 1.8.x<br>
<br>
> And started normally.<br>
<br>
</div>Yes, which probably means that 'bundle' is a command that's on the path when<br>
you run a login shell, but is not on the default path used by upstart.  You<br>
can verify the location of the bundle command by running 'which bundle'.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Steve Langasek                   Give me a lever long enough and a Free OS<br>
Debian Developer                   to set it on, and I can move the world.<br>
Ubuntu Developer                                    <a href="http://www.debian.org/" target="_blank">http://www.debian.org/</a><br>
<a href="mailto:slangasek@ubuntu.com">slangasek@ubuntu.com</a>                                     <a href="mailto:vorlon@debian.org">vorlon@debian.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Mariano Gabriel González</div>
</div>