[12:02] I believe I have a problem with the umask stanza having no effect, could someone please take a look at config & terminal session here - https://gist.github.com/90f931594debddb3e972 [12:03] I need files to be created ug+rw, and directories to be created ug+rwx - I'm sure this is correct. [12:06] I'm wondering if the `exec su -s /bin/sh -c 'exec "$0" "$@"'……….` trick is rendering the `umask` stanza useless [12:30] I posted the stanza:umask question to the mailing list, hope to receive an answer [14:17] http://stackoverflow.com/questions/8851848/upstart-unicorn-with-umask-ignored now at SO [15:45] Hi. I have an upstart job that starts several instances of another job. This works fine, and I can stop and restart each individual instance by passing the correct variables in the shell. However, I'd like to stop all instances by stopping the parent job. How do I do this? [15:47] right now, "initctl stop parent" results in "stop: Unknown instance:" [15:47] trondmm: Have the parent job run 'initctl list' then stop each instance found (see http://upstart.ubuntu.com/cookbook/#determining-how-to-stop-a-job-with-multiple-running-instances) [15:48] jodh: oh, so your "parent" job contains 'instance'? [15:50] no, the parent only includes a script block that starts the sessions. basically for var in ...; do start instance; done [15:51] trondmm: can you pastebin your config? [15:51] I tried adding a pre-stop block which did the same loop, and stop instance, that didnÃ't work [15:51] hangon [15:54] http://pastebin.com/dMxDLQDU [15:56] trondmm: 'start on started' is probably wrong here as the disks aren't mounted at that point. [15:57] Ah, OK. I've only actually started it manually so far. [15:57] trondmm: also, you'll need to say "start wmsinstance ... || true". See http://upstart.ubuntu.com/cookbook/#develop-scripts-using-bin-sh and http://upstart.ubuntu.com/cookbook/#debugging-a-script-which-appears-to-be-behaving-oddly [15:58] 'start on filesystem' would be safer. See upstart-events(7). [15:58] trondmm: again, "chdir ... || true". [16:03] right. [16:04] trondmm: for the problem you're mentioning you'll need to change 'script' in your parent job to 'pre-start'. This will make it an abstract job that will run "forever". See http://upstart.ubuntu.com/cookbook/#jobs-that-run-forever [16:08] hey! that worked :) Thanks! [16:10] trondmm: np. If you set a "stop on" for the parent job, you can use the for loop again in a 'pre-stop script' to handle stopping all the instances. [16:13] actually, I can't get it work with pre-stop, but it works in post-stop