Is there a reason you didn't simply use the upstart built-in setuid command? http://upstart.ubuntu.com/cookbook/#setuid