#NEWLINE# def status( name , sig = None ) : #NEWLINE# #INDENT# "\n    Return the status for a service (True or False).\n\n    name\n        Name of service\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.status <service name>\n    " #NEWLINE# if sig : #NEWLINE# #INDENT# return bool ( __salt__ [ 'status.pid' ] ( sig ) ) #NEWLINE# #UNINDENT# cmd = '{0} {1} onestatus' . format ( _cmd ( ) , name ) #NEWLINE# return ( not __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) )