How to get output from upstart jobs when logged in via SSH?
Posted
by
Binarus
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Binarus
Published on 2011-03-12T11:06:24Z
Indexed on
2011/03/12
16:18 UTC
Read the original article
Hit count: 230
Hi,
at the moment, I am trying to learn upstart and can't get around a basic problem. To monitor what my job definitions are doing, I would like to see text output from the jobs. That does not seem to be possible when I am logged on via SSH.
Currently, I am having this problem with Natty 11.04, but I am convinced that it is a more common one. Probably I just don't know about some important, yet very basic, fact.
A simple job file I use (filename /etc/init/test.conf):
description "test"
start on test
console owner
kill timeout 5
task
script
/bin/echo Gotcha...
end script
My goal is to see the text "Gotcha..." when doing "initctl emit test" or "initctl start test". But that does not work.
What I have tried so far:
- "console output" instead of "console owner"
- "exec /bin/echo Gotcha..." instead of script...end script
I am grateful for any advice.
Thank you very much,
Binarus
© Ask Ubuntu or respective owner