On Sun, 2008-10-26 at 20:36 -0700, Garrett Cooper wrote:

> [10:~]$ cat /etc/init/jobs.d/umasktest_doesntwork
> umask 777
> 
> pre-start exec "[ -f /umask_test ] && rm -f /umask_test"
> 
Why do you have quotes around this?

This will be passed to the shell as the name of a binary to be exec'd
(so will look for something like

        "/usr/bin/[ -f /umask_test ] && rm -f /umask_test"

which is obviously an illegal filename because of the /s in it).


Remove the quotes, and it should work:

        pre-start exec [ -f /umask_test ] && rm -f /umask_test

This is identical to:

        pre-start script
                exec [ -f /umask_test ] && rm -f /umask_test
        end script

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to