1 2 3 4 5
#!/bin/sh S=`initctl list-sessions | head -1 | awk '{ print $2 }'` export UPSTART_SESSION=$S start $*