Adding service start/stop/restart hooks.