Module Expr Str ImportFrom alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str If UnaryOpNot NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str ListLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq SubscriptLoad NameLoad Index Str Num body Return SubscriptLoad NameLoad Index Str orelse Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad attr body If CompareGt Call NameLoad Call AttributeLoad NameLoad attr Num body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num orelse Assign TupleStore NameStore NameStore NameStore BinOpAdd Call AttributeLoad NameLoad attr ListLoad Str Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call SubscriptLoad NameLoad Index Str Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad Str Str For NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad Break If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr If Call NameLoad NameLoad NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 
Provide the service module for system supervisord or supervisord in a
virtualenv
 __future__ absolute_import N/A os salt.ext.six string_types salt.ext.six.moves configparser N/A salt.utils salt.exceptions CommandExecutionError CommandNotFoundError __virtual__ N/A N/A N/A N/A N/A True N/A _get_supervisorctl_bin N/A N/A bin_env N/A N/A N/A 
    Return supervisorctl command to call, either from a virtualenv, an argument
    passed in, or from the global modules options
     N/A cmd supervisorctl N/A N/A bin_env N/A N/A which_result N/A N/A __salt__ N/A cmd.which_bin N/A cmd N/A N/A which_result None N/A N/A N/A CommandNotFoundError N/A N/A Could not find a `{0}` binary format cmd N/A which_result N/A N/A N/A N/A os path isdir bin_env N/A N/A cmd_bin N/A N/A N/A os path join bin_env bin cmd N/A N/A N/A N/A os path isfile cmd_bin N/A N/A cmd_bin N/A N/A CommandNotFoundError N/A N/A Could not find a `{0}` binary format cmd N/A bin_env N/A _ctl_cmd N/A N/A cmd name conf_file bin_env N/A N/A N/A 
    Return the command list to use
     N/A ret N/A N/A _get_supervisorctl_bin bin_env N/A N/A conf_file None N/A N/A ret N/A -c conf_file N/A N/A N/A ret append cmd N/A name N/A N/A N/A N/A ret append name N/A ret N/A _get_return N/A N/A ret N/A N/A N/A N/A N/A ret N/A retcode 0 N/A N/A N/A ret N/A stdout N/A N/A N/A start N/A N/A name user conf_file bin_env N/A all None None None N/A N/A 
    Start the named service.
    Process group names should not include a trailing asterisk.

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.start <service>
        salt '*' supervisord.start <group>:
     N/A N/A N/A name endswith :* N/A N/A name N/A name N/A -1 N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd start name conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A restart N/A N/A name user conf_file bin_env N/A all None None None N/A N/A 
    Restart the named service.
    Process group names should not include a trailing asterisk.

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.restart <service>
        salt '*' supervisord.restart <group>:
     N/A N/A N/A name endswith :* N/A N/A name N/A name N/A -1 N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd restart name conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A stop N/A N/A name user conf_file bin_env N/A all None None None N/A N/A 
    Stop the named service.
    Process group names should not include a trailing asterisk.

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.stop <service>
        salt '*' supervisord.stop <group>:
     N/A N/A N/A name endswith :* N/A N/A name N/A name N/A -1 N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd stop name conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A add N/A N/A name user conf_file bin_env N/A None None None N/A N/A 
    Activates any updates in config for process/group.

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.add <name>
     N/A N/A N/A name endswith : N/A N/A name N/A name N/A -1 N/A N/A N/A N/A name endswith :* N/A N/A name N/A name N/A -2 N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd add name conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A remove N/A N/A name user conf_file bin_env N/A None None None N/A N/A 
    Removes process/group from active config

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.remove <name>
     N/A N/A N/A name endswith : N/A N/A name N/A name N/A -1 N/A N/A N/A N/A name endswith :* N/A N/A name N/A name N/A -2 N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd remove name conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A reread N/A N/A user conf_file bin_env N/A None None None N/A N/A 
    Reload the daemon's configuration files

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.reread
     N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd reread None conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A update N/A N/A user conf_file bin_env name N/A None None None None N/A N/A 
    Reload config and add/remove/update as necessary

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed
    name
        name of the process group to update. if none then update any
        process group that has changes

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.update
     N/A N/A isinstance name string_types N/A N/A N/A N/A name endswith : N/A N/A name N/A name N/A -1 N/A N/A N/A N/A name endswith :* N/A N/A name N/A name N/A -2 N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd update name conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A status N/A N/A name user conf_file bin_env N/A None None None None N/A N/A 
    List programs and its state

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.status
     N/A all_process N/A N/A line N/A N/A N/A status_raw name user conf_file bin_env splitlines N/A N/A N/A N/A len N/A N/A line split 2 N/A N/A N/A process state reason N/A N/A line split None 2 N/A N/A N/A process state reason N/A N/A N/A line split N/A N/A N/A all_process N/A process N/A state reason state reason N/A all_process N/A status_raw N/A N/A name user conf_file bin_env N/A None None None None N/A N/A 
    Display the raw output of status

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.status_raw
     N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd status name conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A custom N/A N/A command user conf_file bin_env N/A None None None N/A N/A 
    Run any custom supervisord command

    user
        user to run supervisorctl as
    conf_file
        path to supervisord config file
    bin_env
        path to supervisorctl bin or path to virtualenv with supervisor
        installed

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.custom "mstop '*gunicorn*'"
     N/A ret N/A N/A __salt__ N/A cmd.run_all N/A _ctl_cmd command None conf_file bin_env runas user python_shell False N/A N/A _get_return ret N/A _read_config N/A N/A conf_file N/A None N/A N/A 
    Reads the config file using configparser
     N/A N/A conf_file None N/A N/A paths N/A /etc/supervisor/supervisord.conf /etc/supervisord.conf N/A path paths N/A N/A N/A N/A N/A os path exists path N/A N/A conf_file path N/A N/A N/A conf_file None N/A N/A N/A CommandExecutionError No suitable config file found N/A config N/A N/A configparser ConfigParser N/A N/A N/A N/A N/A config read conf_file N/A N/A N/A N/A IOError OSError N/A exc N/A N/A N/A CommandExecutionError N/A N/A Unable to read from {0}: {1} format conf_file exc N/A config N/A options N/A N/A name conf_file N/A None N/A N/A 
    .. versionadded:: 2014.1.0

    Read the config file and return the config options for a given process

    name
        Name of the configured process
    conf_file
        path to supervisord config file

    CLI Example:

    .. code-block:: bash

        salt '*' supervisord.options foo
     N/A config N/A _read_config conf_file N/A section_name N/A N/A program:{0} format name N/A N/A section_name N/A N/A config sections N/A N/A N/A CommandExecutionError N/A N/A Process '{0}' not found format name N/A ret N/A N/A N/A key val N/A N/A config items section_name N/A N/A val N/A N/A N/A salt utils str_to_num N/A N/A N/A N/A N/A val split ; N/A 0 strip N/A N/A isinstance val string_types N/A N/A N/A N/A N/A val lower true N/A N/A val True N/A N/A N/A N/A N/A val lower false N/A N/A val False N/A N/A ret N/A key val N/A ret N/A