%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/modules/solaris_system.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZdZd�Z	d�Z
d�Zd�Zddd	�Zddd
�ZdS(uz
Support for reboot, shutdown, etc

This module is assumes we are using solaris-like shutdown

.. versionadded:: 2016.3.0
i(tabsolute_importtunicode_literalstprint_functionNusystemcC@s7tjjj�s)tjjjd�r3tdfStS(u0
    Only supported on Solaris-like systems
    ushutdownuhThe system execution module failed to load: only available on Solaris-like ystems with shutdown command.(tsalttutilstplatformtis_sunostpathtwhichtFalset__virtualname__(((s?/usr/lib/python2.7/site-packages/salt/modules/solaris_system.pyt__virtual__s
cC@st�S(ui
    Halt a running system

    CLI Example:

    .. code-block:: bash

        salt '*' system.halt
    (tshutdown(((s?/usr/lib/python2.7/site-packages/salt/modules/solaris_system.pythalt"s
cC@s2dd|dddg}td|dt�}|S(uW
    Change the system runlevel on sysV compatible systems

    CLI Example:

    state : string
        Init state

    .. code-block:: bash

        salt '*' system.init 3

    .. note:

        state 0
            Stop the operating system.

        state 1
            State 1 is referred to as the administrative state. In
            state 1 file systems required for multi-user operations
            are mounted, and logins requiring access to multi-user
            file systems can be used. When the system comes up from
            firmware mode into state 1, only the console is active
            and other multi-user (state 2) services are unavailable.
            Note that not all user processes are stopped when
            transitioning from multi-user state to state 1.

        state s, S
            State s (or S) is referred to as the single-user state.
            All user processes are stopped on transitions to this
            state. In the single-user state, file systems required
            for multi-user logins are unmounted and the system can
            only be accessed through the console. Logins requiring
            access to multi-user file systems cannot be used.

       state 5
            Shut the machine down so that it is safe to remove the
            power. Have the machine remove power, if possible. The
            rc0 procedure is called to perform this task.

       state 6
             Stop the operating system and reboot to the state defined
             by the initdefault entry in /etc/inittab. The rc6
             procedure is called to perform this task.
    ushutdownu-iu-gu0u-yucmd.runtpython_shell(t__salt__R	(tstatetcmdtret((s?/usr/lib/python2.7/site-packages/salt/modules/solaris_system.pytinit/s.cC@st�S(uq
    Poweroff a running system

    CLI Example:

    .. code-block:: bash

        salt '*' system.poweroff
    (R(((s?/usr/lib/python2.7/site-packages/salt/modules/solaris_system.pytpoweroffbs
cC@sHdddd|dg}|r.|j|�ntd|dt�}|S(uK
    Reboot the system

    delay : int
        Optional wait time in seconds before the system will be rebooted.
    message : string
        Optional message to broadcast before rebooting.

    CLI Example:

    .. code-block:: bash

        salt '*' system.reboot
        salt '*' system.reboot 60 "=== system upgraded ==="
    ushutdownu-iu6u-gu-yucmd.runR(tappendRR	(tdelaytmessageRR((s?/usr/lib/python2.7/site-packages/salt/modules/solaris_system.pytrebootos
cC@sHdddd|dg}|r.|j|�ntd|dt�}|S(uX
    Shutdown a running system

    delay : int
        Optional wait time in seconds before the system will be shutdown.
    message : string
        Optional message to broadcast before rebooting.

    CLI Example:

    .. code-block:: bash

        salt '*' system.shutdown
        salt '*' system.shutdown 60 "=== disk replacement ==="
    ushutdownu-iu5u-gu-yucmd.runR(RRR	(RRRR((s?/usr/lib/python2.7/site-packages/salt/modules/solaris_system.pyR�s
(t__doc__t
__future__RRRtsalt.utils.pathRtsalt.utils.platformR
RR
RRtNoneRR(((s?/usr/lib/python2.7/site-packages/salt/modules/solaris_system.pyt<module>s		
	3	


Zerion Mini Shell 1.0