def remove(self):
     if sudo_utils.call([SYSTEMCTL_CMD, 'disable', '--now', self.name]):
         raise StandardError('stop of systend unit has failed')
     sudo_utils.delete_file('/etc/systemd/system/%s.service' % self.name)
 def stop(self):
     _logger.debug('stoping the service')
     if sudo_utils.call([self.path, 'stop']):
         raise StandardError('stop of init script has failed')
 def stop(self):
     if sudo_utils.call([SYSTEMCTL_CMD, 'disable', '--now', self.name]):
         raise StandardError('stop of systend unit has failed')