Added the restart function to the init script