??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó ßUdac@sÞddlZddlZddlZddlZddlZddlZddlZddlZddlm Z m Z ddl m Z m Z dd„Zd„Zd„Zd„Zdd „Zd „Zd „Zd „ZdS( iÿÿÿÿN(tPY2tb(tto_bytestto_textcCs–|rRtjjdƒs5ttjd||fƒƒSttjd||fƒƒStjjdƒs{ttjd|ƒƒSttjd|ƒƒSdS(sÏ This function will check if the service name supplied is enabled in any of the sysv runlevels :arg name: name of the service to test for :kw runlevel: runlevel to check (default: None) s /etc/rc0.d/s/etc/init.d/rc%s.d/S??%ss/etc/rc%s.d/S??%ss/etc/init.d/rc?.d/S??%ss/etc/rc?.d/S??%sN(tostpathtisdirtbooltglob(tnametrunlevel((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pytsysv_is_enabled*scCs&|jdƒr|}n d|}|S(s° This function will return the expected path for an init script corresponding to the service name supplied. :arg name: name or path of the service to test for t/s/etc/init.d/%s(t startswith(R tresult((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pytget_sysv_script<s  cCstjjt|ƒƒS(s¾ This function will return True or False depending on the existence of an init script corresponding to the service name supplied. :arg name: name of the service to test for (RRtexistsR(R ((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pyt sysv_existsKsc Cs—t}tjƒdkr!d}nd}|jdtƒ}|j||gƒ\}}}|dkr“x-|jƒD]}||krpt}PqpqpWn|S(sX Last resort to find a service by trying to match pattern to programs in memory tSunOSs-eftauxwwtpsi(tFalsetplatformtsystemt get_bin_pathtTruet run_commandt splitlines( tmoduletpatterntfoundtflagstpsbintrctpsouttpserrtline((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pytget_psUs    tcCsS|sO|jr2|jdd||fdtƒqO|jdd||fƒndS(s{ This function will return an error or exit gracefully depending on check mode status and if the service is missing or not. :arg module: is an AnsibleModule object, used for it's utility methods :arg found: boolean indicating if services was found or not :arg service: name of service :kw msg: extra info to append to error/success msg when missing tmsgs>Service %s not found on %s, assuming it will exist on full runtchangeds+Could not find the requested service %s: %sN(t check_modet exit_jsonRt fail_json(RRtserviceR'((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pytfail_if_missingjs  #cCstjƒ}|dkrtjtjtjƒ}x3tdƒD]%}||kr=tj||ƒq=q=W|tdƒkrˆtj|ƒntjƒ}|dkr°tjdƒntj ƒ}|dkr×t dƒ‚ntj dƒtjƒ}|dkrtjdƒqn|S(sk This function performs the double fork process to detach from the parent process and execute. iiiÿÿÿÿs*Unable to detach session while daemonizingR ( RtforktopentdevnulltO_RDWRtrangetdup2tcloset_exittsetsidt Exceptiontchdir(tpidtfdtnumtsid((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pyt fork_process{s&          c s²d}d}ytjƒ‰tƒ}Wnatk rT|jdddtjƒƒn5tk rˆ}|jdt|ƒdtjƒƒnX|dkrÍtj ˆdƒt |t ƒs÷t rÙt jt|d|ƒƒ}q÷t jt|d|ƒƒ}ng}x'|D]}|jt|d|ƒƒqWtj|dtd tjd tjd ‡fd †ƒ}|j|jg} itd ƒ|j6td ƒ|j6} x¬| rCtj| g| dƒ\} } } | | | sÙ|jƒr˜xd| D]Y}|| kr#tj|jƒ|ƒ}|s#| j|ƒq#n| |ct|ƒ7ÏsR&itprotocoliÿÿÿÿsSUnable to fork, no exception thrown, probably due to lack of resources, check logs.N('RRER=tOSErrorR+t tracebackt format_excR7RR4t isinstancetlistRtshlextsplitRtappendt subprocesstPopenRtPIPERBRCRtselecttpolltreadtfilenotremovetwaittpickletdumpst returncodetHIGHEST_PROTOCOLtwriteR5twaitpidRtloads(RtcmdtchunkR@R9texctrun_cmdtctptfdstoutputtrfdtwfdtefdtouttdatat return_data((REs@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pyt daemonize¥s`    &  6& !  ! >    ,cCs’tjƒdkrd}nd}|jdtƒ}|jd||fƒ\}}}|dkrŽx*|jdƒD]}||krqtSqqWntS(NRs-efRRs%s %sis (RRRRRRNR(RRtpsflagsR R!RkterrR$((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pytcheck_pss "   (RRRYRRSRMRPRItansible.module_utils.sixRRtansible.module_utils._textRRtNoneR RRR%R-R=RnRq(((s@/usr/lib/python2.7/site-packages/ansible/module_utils/service.pyts"             * \