#NEWLINE# def get_enabled( ) : #NEWLINE# #INDENT# "\n    Return a list of service that are enabled on boot\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.get_enabled\n    " #NEWLINE# prefix = '/etc/rc[S{0}].d/S' . format ( _get_runlevel ( ) ) #NEWLINE# ret = set ( ) #NEWLINE# lines = glob . glob ( '{0}*' . format ( prefix ) ) #NEWLINE# for line in lines : #NEWLINE# #INDENT# ret . add ( re . split ( ( prefix + '\\d+' ) , line ) [ 1 ] ) #NEWLINE# #UNINDENT# return sorted ( ret )