Changed init.d script to upstart