%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/modules/ |
Current File : //usr/lib/python2.7/site-packages/salt/modules/service.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z i d d 6Z i d d 6d d 6Z d � Z d � Z d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d � Z d S( u� If Salt's OS detection does not identify a different virtual service module, the minion will fall back to using this basic module, which simply wraps sysvinit scripts. i ( t absolute_importt print_functiont unicode_literalsNu reloadu reload_u /etc/rc.du Archu Arch ARMc C@ s� t d � } t j d � | k r+ t d f St d d k rE t d f St j d � } | d k rs t d j | � f St d t � r� t d f Sd S(! u= Only work on systems which exclusively use sysvinit u RedHatu CentOSu Amazonu ScientificLinuxu CloudLinuxu Fedorau Gentoou Ubuntuu Debianu Devuanu ALTu OELu Linarou elementary OSu McAfee OS Serveru Raspbianu SUSEu osu Your OS is on the disabled listu kernelu Linuxu Non Linux OSes are not supportedu initu sysvinitu unknownu Minion is running {0}u systemd.bootedu Minion is running systemdu service( u RedHatu CentOSu Amazonu ScientificLinuxu CloudLinuxu Fedorau Gentoou Ubuntuu Debianu Devuanu ALTu OELu Linarou elementary OSu McAfee OS Serveru Raspbianu SUSEN( Nu sysvinitu unknown( t sett __grains__t gett Falset Nonet formatt __utils__t __context__( t disablet init_grain( ( s8 /usr/lib/python2.7/site-packages/salt/modules/service.pyt __virtual__ s8 c C@ sG t j j t j t j d � d � | � d | } t d | d t �S( uC Run the specified service with an action. .. versionadded:: 2015.8.1 name Service name. action Action name (like start, stop, reload, restart). CLI Example: .. code-block:: bash salt '*' service.run apache2 reload salt '*' service.run postgresql initdb u osu /etc/init.du u cmd.retcodet python_shell( t ost patht joint _GRAINMAPR R t __salt__R ( t namet actiont cmd( ( s8 /usr/lib/python2.7/site-packages/salt/modules/service.pyt run<