#NEWLINE# def status( name , sig = None ) : #NEWLINE# #INDENT# "\n    Return the status for a service via rest_sample, returns a bool\n    whether the service is running.\n\n    .. versionadded:: 2015.8.0\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.status <service name>\n    " #NEWLINE# proxy_fn = 'rest_sample.service_status' #NEWLINE# resp = __proxy__ [ proxy_fn ] ( name ) #NEWLINE# if ( resp [ 'comment' ] == 'stopped' ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( resp [ 'comment' ] == 'running' ) : #NEWLINE# #INDENT# return True