#NEWLINE# def enabled( job_label , runas = None ) : #NEWLINE# #INDENT# "\n    Return True if the named service is enabled, false otherwise\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.enabled <service label>\n    " #NEWLINE# overrides_data = dict ( plistlib . readPlist ( '/var/db/launchd.db/com.apple.launchd/overrides.plist' ) ) #NEWLINE# if overrides_data . get ( job_label , False ) : #NEWLINE# #INDENT# if overrides_data [ job_label ] [ 'Disabled' ] : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return False