Script updated to restart the service