upstart on lucid
Till Klampaeckel
till at lagged.biz
Sun Mar 11 18:33:43 UTC 2012
Hi,
I was wondering what you guys suggest to debug upstart scripts. In
general, I am having trouble finding docs which are suitable for
upstart on lucid. It seems like 0.6.5 is installed and most of the
time the only error message received is 'unknown job'.
I've been thinking about upgrading but I couldn't find great guides,
add to that updating a super daemon at instance start up seems like
asking for more problems. We run all our servers on AWS currently and
bootstrap the rest of the stack with chef.
Anyway, I've tried a few things.
E.g., verbose doesn't seem to work at all:
$ sudo initctl -vvvvvv start gearman-worker
gearman-worker start/running, process 17992
(Note: the worker is not running. ;))
I am trying this in my 'script' block:
exec 2 >> /var/log/upstart-debug.log
set -x
But the log stays empty. I don't know what it does in there which
would yield a 'successful' result.
My second problem is:
I wanted to distribute the gearman-worker.conf with the worker code
and created a symlink from /etc/init/gearman-worker.conf to my
application checkout - upstart fails with 'unknown job' and strace
tells me it thinks 'resource not available'.
I'd appreciate any pointers.
Till
More information about the upstart-devel
mailing list