Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/landscape/manager/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyc

ó
ÍÿŠTc@s°ddlZddlZddlZddlmZddlmZddlmZdefd„ƒYZ	defd„ƒYZ
d	efd
„ƒYZdefd„ƒYZdS(
iÿÿÿÿN(tdatetime(tProcessInformation(t
ManagerPlugintProcessNotFoundErrorcBseZRS((t__name__t
__module__(((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyR
stProcessMismatchErrorcBseZRS((RR(((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyRstSignalProcessErrorcBseZRS((RR(((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyRst
ProcessKillercBs5eZdZdd„Zd„Zd„Zd„ZRS(sb
    A management plugin that signals processes upon receiving a message from
    the server.
    cCs%|dkrtƒ}n||_dS(N(tNoneRtprocess_info(tselfR
((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyt__init__scCs-tt|ƒj|ƒ|jd|jƒdS(Nssignal-process(tsuperRtregistertregister_messaget_handle_signal_process(Rtregistry((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyR!s	cCs3|j||j|d|d|d|dƒdS(Ntpidtnames
start-timetsignal(tcall_with_operation_resulttsignal_process(Rtmessage((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyR&sc
Cstjd||ƒ|jj|ƒ}|s\tj|ƒ}d|||f}t|ƒ‚ndt|d|ƒdkrÀtj|ƒ}tj|dƒ}d|||||f}t|ƒ‚nt	t
d|fƒ}	ytj||	ƒWn&d|||f}t
|ƒ‚nXdS(Ns-Sending %s signal to the process with PID %d.s?The process %s with PID %d that started at %s UTC was not founds
start-timeis™The process %s with PID %d that started at %s UTC was not found.  A process with the same PID that started at %s UTC was found and not sent the %s signalsSIG%ssEAttempting to send the %s signal to the process %s with PID %d failed(tloggingtinfoR
tget_process_infoRtutcfromtimestampRtabsRtgetattrRtostkillR(
RRRt
start_timetsignameR
Rt
expected_timetactual_timetsignum((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyR,s,	
	
N(RRt__doc__R	RRRR(((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyRs
		(
RRRRtlandscape.lib.processRtlandscape.manager.pluginRt	ExceptionRRRR(((sC/usr/lib/python2.7/dist-packages/landscape/manager/processkiller.pyt<module>s