[09:23] <mshadle> i am trying to create an upstart script... and can't figure out why this one in paritcular doesnt work
[09:23] <saz> what does it do?
[09:24] <mshadle> the command is this:
[09:24] <mshadle>  /usr/local/bin/php-cgi --fpm --fpm-config /etc/php-fpm.conf
[09:24] <mshadle> that's it. it daemonizes itself by default
[09:24] <mshadle> if i run it on the command line it works like a charm. but inside of a basic upstart script with exec /usr/local/bin/php-cgi --fpm --fpm-config /etc/php-fpm.conf it doesnt work
[09:25] <mshadle> i tried adding & for kicks.. i tried fork, respawn, task 
[09:26] <saz> tried it minus the 'exec'?
[09:27] <mshadle> doesn't seem to do anything
[09:28] <saz> have you got the output going to the console?
[09:28] <mshadle> no.. 
[09:28] <saz> if so, use xconsole to check for any messages
[09:28] <saz> console output <- add that line to your script
[09:30] <mshadle> im downstairs right now. i'll have to go up and look.
[09:30] <saz> if you've got an ssh session, you can just run xconsole
[09:33] <mshadle> here i'll let you examine this
[09:33] <mshadle> http://pastebin.com/z0B2uV7e
[09:40] <saz> where is your script/end-script ?
[09:41] <saz> er
[09:41] <saz> s/-//
[09:41] <saz> you shouldn't need to fork or the exec
[09:43] <mshadle> well, does i matter if it is daemonized or not ?
[09:44] <saz> I have no idea
[09:44] <saz> but I'd try putting script and end script around it
[09:44] <mshadle>  /etc/init/php-fpm.conf:12: Unknown stanza
[09:45] <saz> ?
[09:45] <mshadle> that's the line without exec prefixing it
[09:45] <mshadle> let's try the script
[09:45] <mshadle> no change :/
[09:46] <saz> http://pastebin.com/fsmKJNw0
[09:47] <saz> something like that
[09:47] <saz> I'm not a guru on this, I've only started playing with upstart yesterday
[09:48] <mshadle> yeah nothing seems to b e working
[09:49] <saz> I would try replacing your call to the php program with 
[09:49] <saz> echo "hello world"
[09:49] <saz> and see if you see hello world in your xconsole
[09:49] <saz> and take it from there
[09:50] <mshadle> yeah i just did touch /tmp/php-fpm and nothing
[09:50] <mshadle> i just made one for nginx, no problem
[09:54] <saz> oh wait
[09:54] <saz> /etc/init/php-fpm.conf:12: Unknown stanza  <- you need to quote the whole thing
[09:55] <saz> http://pastebin.com/wSEMYiQ3
[09:55] <saz> try that
[09:55] <saz> or maybe that with exec in front of it
[09:55] <mshadle> nope.
[09:55] <mshadle> you do need exec
[09:55] <mshadle> i know that for sure
[09:56] <saz> is php-cgi a script?
[09:56] <saz> I had enormous amounts of trouble with tightvncserver, because it's a script
[09:56] <mshadle> not working.
[09:56] <mshadle> no php-cgi is a binary
[09:56] <mshadle> and it daemonizes itself
[09:57] <mshadle> there is a script too which could be used but it doesnt work. what worries me is touch /tmp/php-fpm isnt even working
[09:59] <mshadle> i see the issue. there is some sort of upstart registry or something that has that job blackballed
[09:59] <mshadle> i made a new random named service and it touched the file no problem
[09:59] <mshadle> so i bet i have had it working one way.. but it doesn't like my php-fpm service name
[10:00] <saz> ah
[10:01] <mshadle> hah. what do you know. i changed the name of the .conf file and now php-fpm2 works
[10:01] <mshadle> but php-fpm is 'stuck'
[10:01] <mshadle> i had the right idea the entire time :p
[10:02] <mshadle> problem is i dont know where the cache/db is
[10:05] <mshadle> we'll try a reboot. i'll be pissed if it gets stuck on that.
[10:09] <mshadle> awesome.
[20:59] <ink> I'm writing my first init script in upstart; is it sufficient for my script to say 'emits foo' to have that signal to be sent after it's up and running, or do I have send from within the daemon itself?
[21:00] <ink> (via some C code or initctl)
[21:21] <sadmac> ink: you must send it
[21:21] <ink> thanks
[21:21] <sadmac> ink: emits is just for documentation
[22:04] <ink> this script starts xorg:  http://pastebin.com/UfdU1kZ8
[22:04] <ink> but `initctl status gui-test` always says stop/waiting
[22:05] <ink> (never emits the signal?)
[22:09] <ink> or does post-start not fire until the emit...