upstart script can not be too long when root is read only?

paul phsdv at tiscali.fr
Sun Nov 5 20:02:04 GMT 2006


While trying to write my own upstart scripts from scratch I ran in the
issue that my first script that runs failed with this error:

/bin/sh: /dev/fd/7: No such file or directory

I checked the code and found that if the script is longer than 1024
bytes, it will be executed via  magic /dev/fd/NN devices. But there root
is still read only I can imagine that this will fail with above error.
Is this the reason?

The work around would be to call external sh scripts until root is
writable and the magic /dev/fd/NN can be used. This is why I think the
sysvinit scripts currently are working.

Paul




More information about the Upstart-devel mailing list