def get_disabled():
 ret = set()
 for name in _iter_service_names():
  if _service_is_upstart(name):
   if _upstart_is_disabled(name):
    ret.add(name)
  elif _service_is_sysv(name):
   if _sysv_is_disabled(name):
    ret.add(name)
 return sorted(ret)

def get_disabled ( ) : ret = set ( ) for name in _iter_service_names ( ) : if _service_is_upstart ( name ) : if _upstart_is_disabled ( name ) : ret . add ( name ) elif _service_is_sysv ( name ) : if _sysv_is_disabled ( name ) : ret . add ( name ) return sorted ( ret )
return a list of all disabled services cli example: .