Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias Assign NameStore Dict Str Str Assign NameStore ListLoad Str Str Assign NameStore NameLoad For NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad Break FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Return Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad 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 Call NameLoad 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 Call NameLoad 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 Call NameLoad 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 Call NameLoad NameLoad Return UnaryOpNot Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr Num handlers ExceptHandler type NameLoad body Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIn NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareNotIn NameLoad Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad decorator_list
N/A N/A 
s6 service module

This module is compatible with the :mod:`service <salt.states.service>` states,
so it can be used to maintain services using the ``provider`` argument:

.. code-block:: yaml

    myservice:
      service:
        - running
        - provider: s6

Note that the ``enabled`` argument is not available with this provider.

:codeauthor: :email:`Marek Skrobacki <skrobul@skrobul.com>`
 __future__ absolute_import N/A os N/A re salt.exceptions CommandExecutionError N/A __func_alias__ N/A reload_ reload N/A VALID_SERVICE_DIRS N/A /service /etc/service N/A SERVICE_DIR None N/A service_dir VALID_SERVICE_DIRS N/A N/A N/A N/A N/A os path exists service_dir N/A N/A SERVICE_DIR service_dir N/A _service_path N/A N/A name N/A N/A N/A 
    build service path
     N/A N/A SERVICE_DIR N/A N/A N/A CommandExecutionError Could not find service directory. N/A N/A N/A {0}/{1} format SERVICE_DIR name N/A start N/A N/A name N/A N/A N/A 
    Starts service via s6

    CLI Example:

    .. code-block:: bash

        salt '*' s6.start <service name>
     N/A cmd N/A N/A s6-svc -u {0} format N/A _service_path 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 
    Stops service via s6

    CLI Example:

    .. code-block:: bash

        salt '*' s6.stop <service name>
     N/A cmd N/A N/A s6-svc -d {0} format N/A _service_path name N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd N/A term N/A N/A name N/A N/A N/A 
    Send a TERM to service via s6

    CLI Example:

    .. code-block:: bash

        salt '*' s6.term <service name>
     N/A cmd N/A N/A s6-svc -t {0} format N/A _service_path 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 
    Send a HUP to service via s6

    CLI Example:

    .. code-block:: bash

        salt '*' s6.reload <service name>
     N/A cmd N/A N/A s6-svc -h {0} format N/A _service_path 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 service via s6. This will stop/start service

    CLI Example:

    .. code-block:: bash

        salt '*' s6.restart <service name>
     N/A cmd N/A N/A s6-svc -t {0} format N/A _service_path name N/A N/A N/A N/A __salt__ N/A cmd.retcode cmd N/A full_restart N/A N/A name N/A N/A N/A 
    Calls s6.restart() function

    CLI Example:

    .. code-block:: bash

        salt '*' s6.full_restart <service name>
     N/A N/A restart name N/A status N/A N/A name sig N/A None N/A N/A 
    Return the status for a service via s6, return pid if running

    CLI Example:

    .. code-block:: bash

        salt '*' s6.status <service name>
     N/A cmd N/A N/A s6-svstat {0} format N/A _service_path name N/A out N/A N/A __salt__ N/A cmd.run_stdout cmd N/A N/A N/A pid N/A N/A N/A N/A re search up \(pid (\d+)\) out group 1 N/A N/A N/A AttributeError N/A N/A pid N/A pid N/A available N/A N/A name N/A N/A N/A 
    Returns ``True`` if the specified service is available, otherwise returns
    ``False``.

    CLI Example:

    .. code-block:: bash

        salt '*' s6.available foo
     N/A N/A name N/A get_all N/A missing N/A N/A name N/A N/A N/A 
    The inverse of s6.available.
    Returns ``True`` if the specified service is not available, otherwise returns
    ``False``.

    CLI Example:

    .. code-block:: bash

        salt '*' s6.missing foo
     N/A N/A name N/A get_all N/A get_all N/A N/A N/A N/A N/A 
    Return a list of all available services

    CLI Example:

    .. code-block:: bash

        salt '*' s6.get_all
     N/A N/A SERVICE_DIR N/A N/A N/A CommandExecutionError Could not find service directory. N/A service_list N/A dirname N/A dirname N/A N/A os listdir SERVICE_DIR N/A N/A N/A dirname startswith . N/A N/A sorted service_list N/A