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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/sysvconfig.pyc
ó
}9Rc@sBdZddlZdefd„ƒYZdefd„ƒYZdS(sDProgrammatically manage the Landscape client SysV-style init script.iÿÿÿÿNtProcessErrorcBseZdZRS(s) Error running a process with os.system. (t__name__t
__module__t__doc__(((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pyRst
SysVConfigcBsPeZdZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z	RS(	s…Configure and drive the Landscape client init script.

    @param filename: Path to the file holding init scripts env variables.
    s/etc/default/landscape-clientcCs
||_dS(N(t	_filename(tselftfilename((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pyt__init__scCs3|jƒ}|rdpd|d<|j|ƒdS(s>Make the init script decide to start the client when it's run.iitRUNN(t_parse_filet_write_file(Rtflagtcurrent((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pytset_start_on_bootscCs"tjdƒrtdƒ‚ndS(s%Restart the Landscape client service.s$/etc/init.d/landscape-client restartsCould not restart clientN(tostsystemR(R((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pytrestart_landscapescCs"tjdƒrtdƒ‚ndS(s"Stop the Landscape client service.s!/etc/init.d/landscape-client stopsCould not stop clientN(RRR(R((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pytstop_landscapescCs9|jƒ}|jddƒ}|d jƒo8|dkS(sç
        Return a boolean representing whether the init script will decide to
        actually start the client when it is run.  This method should match
        the semantics of the checks in debian/landscape-client.init.
        R	t0i(R
tgettisspace(Rtstatet	run_value((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pytis_configured_to_run#scCsyi}tjj|jƒruxWt|jdƒD]@}|jƒ}d|kr.|jdƒ\}}|||<q.q.Wn|S(Ntrt=(RtpathtisfileRtopentstriptsplit(Rtvaluestlinetkeytvalue((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pyR
-scCs^t|jdƒ}x;t|jƒƒD]'}|jd|t||ƒfƒq%W|jƒdS(Ntws%s=%s
(RRtsortedtkeystwritetstrtclose(RR tfileR"((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pyR8s%(
RRRRRRRRR
R(((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pyR
s				
	(RRt	ExceptionRtobjectR(((s8/usr/lib/python2.7/dist-packages/landscape/sysvconfig.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit