Module Expr Str ImportFrom alias Import alias Import alias Import alias identifier ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Dict Str Str FunctionDef arguments args defaults body Expr Str If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If BoolOpOr CompareGt SubscriptLoad NameLoad Index Num Num BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num Num CompareGt SubscriptLoad NameLoad Index Num Num body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Return Call NameLoad Call SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad decorator_list Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Expr Str Assign NameStore Dict TryExcept body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str orelse For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad Call AttributeLoad NameLoad attr Num For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call AttributeLoad Call SubscriptLoad NameLoad Index Str Str keyword NameLoad keyword Str keyword NameLoad attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body If CompareEq Call AttributeLoad NameLoad attr Num Str body Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Num NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return UnaryOpNot Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return NameLoad For NameStore Call AttributeLoad NameLoad attr Str body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad BinOpBitAnd Call NameLoad Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Return CompareIn NameLoad Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad BinOpBitAnd Call NameLoad Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIn NameLoad Call NameLoad decorator_list
N/A N/A 
The service module for OpenBSD

.. important::
    If you feel that Salt should be using this module to manage services on a
    minion, and it is using a different module (or gives an error similar to
    *'service.start' is not available*), see :ref:`here
    <module-provider-override>`.
 __future__ absolute_import N/A os N/A logging N/A salt.ext.six six salt.ext.six.moves map N/A salt.utils N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ service N/A __func_alias__ N/A reload_ reload __virtual__ N/A N/A N/A N/A N/A 
    Only work on OpenBSD
     N/A N/A N/A N/A __grains__ N/A os OpenBSD N/A N/A N/A os path exists /etc/rc.d/rc.subr N/A N/A krel N/A list N/A list N/A map int N/A N/A N/A __grains__ N/A kernelrelease split . N/A N/A N/A N/A krel N/A 0 5 N/A N/A N/A krel N/A 0 5 N/A N/A krel N/A 1 0 N/A N/A N/A N/A N/A N/A os path exists /usr/sbin/rcctl N/A N/A __virtualname__ N/A N/A False The openbsdservice execution module cannot be loaded: only available on OpenBSD systems. N/A start N/A N/A name N/A N/A N/A 
    Start the specified service

    CLI Example:

    .. code-block:: bash

        salt '*' service.start <service name>
     N/A cmd N/A N/A /etc/rc.d/{0} -f start format name N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd N/A stop N/A N/A name N/A N/A N/A 
    Stop the specified service

    CLI Example:

    .. code-block:: bash

        salt '*' service.stop <service name>
     N/A cmd N/A N/A /etc/rc.d/{0} -f stop format name N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd N/A restart N/A N/A name N/A N/A N/A 
    Restart the named service

    CLI Example:

    .. code-block:: bash

        salt '*' service.restart <service name>
     N/A cmd N/A N/A /etc/rc.d/{0} -f restart format name N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd N/A status N/A N/A name sig N/A None N/A N/A 
    Return the status for a service, returns a bool whether the service is
    running.

    CLI Example:

    .. code-block:: bash

        salt '*' service.status <service name>
     N/A sig N/A N/A N/A bool N/A N/A __salt__ N/A status.pid sig N/A cmd N/A N/A /etc/rc.d/{0} -f check format name N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd N/A reload_ N/A N/A name N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Reload the named service

    CLI Example:

    .. code-block:: bash

        salt '*' service.reload <service name>
     N/A cmd N/A N/A /etc/rc.d/{0} -f reload format name N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd N/A N/A re N/A service_flags_regex N/A N/A re compile ^\s*(\w[\d\w]*)_flags=(?:(NO)|.*)$ N/A pkg_scripts_regex N/A N/A re compile ^\s*pkg_scripts=\'(.*)\'$ N/A start_daemon_call_regex N/A N/A re compile (\s*start_daemon(?!\(\))) N/A start_daemon_parameter_regex N/A N/A re compile (?:\s+(\w[\w\d]*)) _get_rc N/A N/A N/A N/A N/A 
    Returns a dict where the key is the daemon's name and
    the value a boolean indicating its status (True: enabled or False: disabled).
    Check the daemons started by the system in /etc/rc and
    configured in /etc/rc.conf and /etc/rc.conf.local.
    Also add to the dict all the localy enabled daemons via $pkg_scripts.
     N/A daemons_flags N/A N/A N/A N/A N/A N/A N/A salt utils fopen /etc/rc r handle N/A N/A lines N/A N/A handle readlines N/A N/A N/A IOError N/A N/A N/A N/A log error Unable to read /etc/rc N/A N/A line lines N/A N/A match N/A N/A start_daemon_call_regex match line N/A match N/A N/A line N/A line N/A N/A len N/A N/A match group 1 N/A daemon N/A N/A start_daemon_parameter_regex findall line N/A N/A N/A daemons_flags N/A daemon True N/A variables N/A N/A N/A N/A __salt__ N/A cmd.run (. /etc/rc.conf && set) clean_env True output_loglevel quiet python_shell True split N/A var variables N/A N/A match N/A N/A service_flags_regex match var N/A match N/A N/A N/A N/A N/A match group 2 NO N/A N/A N/A daemons_flags N/A N/A N/A match group 1 False N/A N/A match N/A N/A pkg_scripts_regex match var N/A match N/A N/A daemon N/A N/A N/A N/A match group 1 split N/A N/A N/A daemons_flags N/A daemon True N/A daemons_flags N/A available N/A N/A name N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Returns ``True`` if the specified service is available, otherwise returns
    ``False``.

    CLI Example:

    .. code-block:: bash

        salt '*' service.available sshd
     N/A path N/A N/A /etc/rc.d/{0} format name N/A N/A N/A N/A N/A os path isfile path N/A N/A os access path N/A os X_OK N/A missing N/A N/A name N/A N/A N/A 
    .. versionadded:: 2014.7.0

    The inverse of service.available.
    Returns ``True`` if the specified service is not available, otherwise returns
    ``False``.

    CLI Example:

    .. code-block:: bash

        salt '*' service.missing sshd
     N/A N/A N/A available name N/A get_all N/A N/A N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Return all available boot services

    CLI Example:

    .. code-block:: bash

        salt '*' service.get_all
     N/A services N/A N/A N/A N/A N/A N/A os path isdir /etc/rc.d N/A N/A services N/A service N/A N/A os listdir /etc/rc.d N/A N/A N/A available service N/A N/A N/A N/A services append service N/A N/A sorted services N/A get_enabled N/A N/A N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Return a list of service that are enabled on boot

    CLI Example:

    .. code-block:: bash

        salt '*' service.get_enabled
     N/A services N/A N/A N/A daemon is_enabled N/A N/A six iteritems N/A _get_rc N/A N/A is_enabled N/A N/A N/A N/A services append daemon N/A N/A sorted N/A N/A set N/A get_all N/A set services N/A enabled N/A N/A name N/A kwargs N/A N/A 
    .. versionadded:: 2014.7.0

    Return True if the named service is enabled, false otherwise

    CLI Example:

    .. code-block:: bash

        salt '*' service.enabled <service name>
     N/A N/A name N/A get_enabled N/A get_disabled N/A N/A N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Return a set of services that are installed but disabled

    CLI Example:

    .. code-block:: bash

        salt '*' service.get_disabled
     N/A services N/A N/A N/A daemon is_enabled N/A N/A six iteritems N/A _get_rc N/A N/A N/A is_enabled N/A N/A N/A N/A services append daemon N/A N/A sorted N/A N/A set N/A get_all N/A set services N/A disabled N/A N/A name N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Return True if the named service is disabled, false otherwise

    CLI Example:

    .. code-block:: bash

        salt '*' service.disabled <service name>
     N/A N/A name N/A get_disabled N/A