Fog code to start and stop a server