I'm using Ubuntu 11.10 dev and upstart 0.9.7-3. I wanted to use a variable in chdir because it is used on some other places in the script too. For example the part looked so:
env DIRECTORY=/srv/test
chdir $DIRECTORY
But this wasn't allowed and the script failed. Maybe upstart could get the abilit…