def get_svc_alias():
 ret = {}
 for d in AVAIL_SVR_DIRS:
  for el in glob.glob(os.path.join(d, '*')):
   if (not os.path.islink(el)):
    continue
   psvc = os.readlink(el)
   if (not os.path.isabs(psvc)):
    psvc = os.path.join(d, psvc)
   nsvc = os.path.basename(psvc)
   if (nsvc not in ret):
    ret[nsvc] = []
   ret[nsvc].append(el)
 return ret

def get_svc_alias ( ) : ret = { } for d in AVAIL_SVR_DIRS : for el in glob . glob ( os . path . join ( d , '*' ) ) : if ( not os . path . islink ( el ) ) : continue psvc = os . readlink ( el ) if ( not os . path . isabs ( psvc ) ) : psvc = os . path . join ( d , psvc ) nsvc = os . path . basename ( psvc ) if ( nsvc not in ret ) : ret [ nsvc ] = [ ] ret [ nsvc ] . append ( el ) return ret
returns the list of services name that are aliased and their alias path(s) .