#NEWLINE# def get_enabled( ) : #NEWLINE# #INDENT# "\n    Return the enabled services\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.get_enabled\n    " #NEWLINE# ret = set ( ) #NEWLINE# for name in _iter_service_names ( ) : #NEWLINE# #INDENT# if _service_is_upstart ( name ) : #NEWLINE# #INDENT# if _upstart_is_enabled ( ret ) : #NEWLINE# #INDENT# ret . add ( name ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if _service_is_sysv ( name ) : #NEWLINE# #INDENT# if _sysv_is_enabled ( name ) : #NEWLINE# #INDENT# ret . add ( name ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return sorted ( ret )