check that the service is not running before running it