File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/gentoo_service.cpython-310.pyc
Back
o ;j�$ � @ s d Z ddlZddlZddlZddlmZ ddlZe�e �Z dZddiZdd� Z d7d d�Zdd � Zd8dd�Zdd� Zdd� Zdd� Zd9dd�Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d� Zd+d,� Zd:d-d.�Zd/d0� Z d1d2� Z!d3d4� Z"d5d6� Z#dS );as Top level package command wrapper, used to translate the os detected by grains to the correct service manager .. 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>`. � N)�OrderedDict�service�reload_�reloadc C s2 t d dkrtjj�t�stS t d dkrtS dS )z6 Only work on systems which default to OpenRC �osZGentooZAlpine)Fz_The gentoo_service execution module cannot be loaded: only available on Gentoo/Open-RC systems.)Z __grains__�salt�utilsZsystemdZbooted�__context__�__virtualname__� r r �O/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/gentoo_service.py�__virtual__ s r Fc C s"