Added rest of code to start/stop/restart service in console mode