| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/landscape/manager/ |
Upload File : |
ó
}9Rc @ sž d d l Z d d l m Z d d l m Z d d l m Z d d l m Z m Z m
Z
d e f d „ ƒ YZ d e f d „ ƒ YZ
d
e f d „ ƒ YZ d S( iÿÿÿÿN( t Deferred( t ProcessProtocol( t ProcessDone( t
ManagerPlugint SUCCEEDEDt FAILEDt ShutdownFailedErrorc B s e Z d Z d „ Z RS( sv Raised when a call to C{/sbin/shutdown} fails.
@ivar data: The data that the process printed before failing.
c C s
| | _ d S( N( t data( t selfR ( ( sE /usr/lib/python2.7/dist-packages/landscape/manager/shutdownmanager.pyt __init__ s ( t __name__t
__module__t __doc__R ( ( ( sE /usr/lib/python2.7/dist-packages/landscape/manager/shutdownmanager.pyR
s t ShutdownManagerc B sJ e Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s, | d k r d d l m } n | | _ d S( Niÿÿÿÿ( t reactor( t Nonet twisted.internetR t _process_factory( R t process_factory( ( sE /usr/lib/python2.7/dist-packages/landscape/manager/shutdownmanager.pyR s c C s- t t | ƒ j | ƒ | j d | j ƒ d S( s Add this plugin to C{registry}.
The shutdown manager handles C{shutdown} activity messages broadcast
from the server.
t shutdownN( t superR
t registert register_messaget perform_shutdown( R t registry( ( sE /usr/lib/python2.7/dist-packages/landscape/manager/shutdownmanager.pyR s c C s‘ | d } | d } t ƒ } | j | j j ƒ | j j | j | ƒ | j j | j | ƒ | j | | ƒ \ } } | j
j | | d | ƒd S( sî Request a system restart or shutdown.
If the call to C{/sbin/shutdown} runs without errors the activity
specified in the message will be responded as succeeded. Otherwise,
it will be responded as failed.
s operation-idt reboott argsN( t ShutdownProcessProtocolt set_timeoutR R t resultt addCallbackt _respond_successt
addErrbackt _respond_failuret _get_command_and_argsR t spawnProcess( R t messaget operation_idR t protocolt commandR ( ( sE /usr/lib/python2.7/dist-packages/landscape/manager/shutdownmanager.pyR $ s
c s<