def _upstart_services():
 if HAS_UPSTART:
  return [os.path.basename(name)[:(-5)] for name in glob.glob('/etc/init/*.conf')]
 else:
  return []

def _upstart_services ( ) : if HAS_UPSTART : return [ os . path . basename ( name ) [ : ( - 5 ) ] for name in glob . glob ( '/etc/init/*.conf' ) ] else : return [ ]
return list of upstart services .