def get_svc_broken_path(name='*'):
 if (not SERVICE_DIR):
  raise CommandExecutionError('Could not find service directory.')
 ret = set()
 for el in glob.glob(os.path.join(SERVICE_DIR, name)):
  if (not _is_svc(el)):
   ret.add(el)
 return sorted(ret)

def get_svc_broken_path ( name = '*' ) : if ( not SERVICE_DIR ) : raise CommandExecutionError ( 'Could not find service directory.' ) ret = set ( ) for el in glob . glob ( os . path . join ( SERVICE_DIR , name ) ) : if ( not _is_svc ( el ) ) : ret . add ( el ) return sorted ( ret )
return list of broken path(s) in service_dir that match name a path is broken if it is a broken symlink or can not be a runit service name a glob for service name .