#NEWLINE# def stop( name ) : #NEWLINE# #INDENT# "\n    Stop the specified service\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' service.stop <service name>\n    " #NEWLINE# if _service_is_upstart ( name ) : #NEWLINE# #INDENT# cmd = 'stop {0}' . format ( name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cmd = '/sbin/service {0} stop' . format ( name ) #NEWLINE# #UNINDENT# return ( not __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) )