Trying to write an upstart script for a newrelic agent
Steve Langasek
steve.langasek at ubuntu.com
Tue Feb 18 19:36:59 UTC 2014
On Tue, Feb 18, 2014 at 04:17:16PM -0300, Mariano González wrote:
> Steve
> Tried what you suggested, newrelic_rs_dfw_test.conf:
> # Upstart script
> start on runlevel [2345]
> stop on runlevel [016]
> respawn
> chdir /opt/turner/services/newrelic/newrelic_rs_dfw/
> exec bundle exec bin/newrelic_rs
That's not what I suggested. I wrote:
exec ./bundle exec bin/newrelic_rs
I don't think this 'bundle' command is on the system path.
> init (upstart 0.6.5)
Ok. You're quite a few upstart revisions - and almost two Ubuntu LTSes -
behind. I would certainly recommend upgrading to Ubuntu 12.04 if you can,
which would give you the upstart job logging support.
> Run the bundle from the right folder:
> [root at server newrelic_rs_dfw]# pwd
> /path/newrelic/newrelic_rs_dfw
> [root at server newrelic_rs_dfw]# bundle exec ./bin/newrelic_rs
> [Tue Feb 18 19:13:23 UTC 2014] WARN: SSL is disabled by default when using
> Ruby 1.8.x
> And started normally.
Yes, which probably means that 'bundle' is a command that's on the path when
you run a login shell, but is not on the default path used by upstart. You
can verify the location of the bundle command by running 'which bundle'.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20140218/50af4f15/attachment.pgp>
More information about the upstart-devel
mailing list