change startup shutdown script to work with upstart