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