[03:56] hallyn_: yeah that would be good [11:45] When a job has a script in it, is there some way to see the stdout/stderr of that script? [12:06] :q [12:12] I have an upstart job that is trying to use environment variables inside of a shell script. It /looks/ like my variable references ${FOO} are being translated to "" by upstart. I'm at a loss here. [12:58] dcorbin_work: http://upstart.ubuntu.com/cookbook/#see-the-environment-a-job-runs-in [12:58] dcorbin_work: http://upstart.ubuntu.com/cookbook/#environment-variables [13:01] jhunt: I looked through all of those. None of those confirm or even describe if all environment variables references in the script are processed by upstart rather than the shell. [13:02] let me give you a pastebin [13:19] http://pastebin.com/uKBuQhTA : I'm finding things improved if I use "\$" instead of "$" [13:25] But, the escaping only works if it's inside double-quotes. Weird [13:26] that's not a complete .conf file. Why are you using bash? I'm rather intrigued by what you're trying to do since there are very few reasons to use a while loop in a job like that. [13:29] jhunt: I was using bash because I find it impossible to get useful information about a failing script out of upstart. I didn't know dash existed until this morning, and I don't know what's different. [13:30] That top part was the entirety of a post-start script [13:30] "man dash" - seriously, you shouldn't need to use bash. There's a section in the cookbook if you insist, but I'd recommend against it. [13:30] What I'm trying to do, is poll the server to be until it is actually finished coming up. [13:31] that doesn't fit upstarts model; the server daemon needs a .conf file so that when the server is ready, the "started JOB=" event will be emitted. You can then write a job that uses that to trigger further actions if required. [13:31] I will probably drop it before I'm done, I did "man dash", but I don't find it "small and absorbable' [13:31] it's a lot smaller than "man bash" :) [13:31] Most of the syntax is the same. [13:32] We're starting a jboss server. It completes the launching fairly quickly, but everything is not fully deployed and ready at that time. [13:32] I agree that polling is "not desireable".