|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/share/system-config-services/ |
Upload File : |
m
sKc @ s d Z d k Z d k Z d k l Z l Z l Z d k Z d k Z d Z d Z
d Z d Z d Z
d f d YZ d
e f d YZ d f d
YZ d S( sh The servicemethods module handles all the backend processing for the system-config-services application.N( t _s N_s catc C s t i d | d } t i i | g | } | | } | i
} | d j o
d } n | d d j o | d } n | | f S( s4 Return (status, output) of executing cmd in a shell.s
{ %s ; } 2>&1t ri is
N(
t ost popent cmdt pipet nonblockingreadert Readert runt callbackt outputt textt closet statust None( R R R
R R R
( ( t3 /usr/share/system-config-services/servicemethods.pyt getstatusoutput s
i i i i t Servicec B s t Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z d
Z d d Z
d
Z d Z d Z d Z d Z d Z d Z d Z RS( s: Represents a service with start script in /etc/init.d
c C s | | _ | | _ | | _ | | _ | i | _ d | _ d | _ g | _
t | _ d | _
g | _ g | _ g | _ t | _ | i t | _ d S( Nt ( t namet selft runlevelst
_runlevelst _runlevels_oldt servicest
uicallbackR t startpriot stoppriot defaultrunlevelst Falset hidet descriptiont processnamest configfilest pidfilest probet _read_script_filet _dirty( R R R R ( ( R t __init__6 s
c C sU | d j o; | i \ | _ | _ | d j o | i SqQ | i Sn
t | d S( NR
t status_message( s statuss status_message( R R t
get_statusR
R' t AttributeError( R R ( ( R t __getattr__K s
c C s t S( N( R ( R ( ( R t is_xinetd_serviceV s c C s | i S( N( R R ( R ( ( R t
get_runlevels[ s c C s | i p t Sn | i | i d } xc t t | i D]L } | | i j o | i | o t Sq q<