403Webshell
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/monitor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyc
ó
}9Rc@sXddlZddlZddlmZddlmZdZdefd„ƒYZdS(iÿÿÿÿN(t	read_file(t
MonitorPlugins/var/run/reboot-requiredtRebootRequiredcBsYeZdZdZdZeZed„Zd„Z	d„Z
d„Zd„Zd„Z
RS(	s±
    Report whether the system requires a reboot.

    @param reboot_required_filename: The path to the flag file that indicates
        if the system needs to be rebooted.
    sreboot-requiredi„cCs||_|d|_dS(Ns.pkgs(t_flag_filenamet_packages_filename(tselftreboot_required_filename((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyt__init__s	cCstjj|jƒS(s@Return a boolean indicating whether the computer needs a reboot.(tostpathtexistsR(R((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyt	_get_flagscCsNtjj|jƒsgSt|jƒjƒ}td„|Dƒƒ}t|ƒS(s;Return the list of packages that required a reboot, if any.css*|] }|r|jƒjdƒVqdS(sutf-8N(tstriptdecode(t.0tline((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pys	<genexpr>%s(RR	R
RRt
splitlinestsettsorted(Rtlinestpackages((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyt
_get_packagess
cCs†i}|jƒ}|jƒ}xad|fd|fgD]G\}}||jj|ƒkraq7n|jj||ƒ|||<q7W|S(s:Return the body of the reboot-required message to be sent.tflagR(RRt_persisttgetR(RtmessageRRtkeytvalue((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyt_create_message(s%cCsI|jƒ}|rEd|d<tjdƒ|jjj|dtƒndS(s˜Send a reboot-required message if needed.

        A message will be sent only if the reboot-required status of the
        system has changed.
        sreboot-required-infottypes5Queueing message with updated reboot-required status.turgentN(Rtloggingtinfotregistrytbrokertsend_messagetTrue(RR((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyR#4s


cCs|jjjd|jƒS(s9Send reboot-required messages if the server accepts them.sreboot-required-info(R!R"tcall_if_acceptedR#(R((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pytrunAs(t__name__t
__module__t__doc__tpersist_nametrun_intervalR$trun_immediatelytREBOOT_REQUIRED_FILENAMERRRRR#R&(((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyRs					
(RRtlandscape.lib.fsRtlandscape.monitor.pluginRR-R(((sD/usr/lib/python2.7/dist-packages/landscape/monitor/rebootrequired.pyt<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit