;ò
–Áƒ@c           @   sS  d  k  Td k Z d k Z d k Z d k Z d k Z e i d ƒ Z e i d e i ƒ Z	 e i d e i ƒ Z
 e i d e i ƒ Z e i d e i ƒ Z e i d e i ƒ Z e i d ƒ Z e i d	 ƒ Z d
 e i f d „  ƒ  YZ e ƒ  Z e i oY e d d d d d d d d d d d d d d d d d d d d d  d! d" d# d$ d% ƒ n d S(&   (   s   *Ns   ^/etc(/rc.d)?/init.d/s*   # +chkconfig: +([-0-9]+) +[-0-9]+ +[-0-9]+s   /var/lock/subsys/([^/
 ]+)s)   ^[^#]*(chkconfig|add-service|del-service)s   ^[^#]*statuss   ^[^#]*reloads   ([^/]+)$s   .*\..*s   InitScriptCheckc           B   s   t  Z d „  Z d „  Z RS(   Nc         C   s   t  i  i |  d ƒ d  S(   Ns   InitScriptCheck(   s   AbstractChecks   __init__s   self(   s   self(    (    s%   /usr/share/rpmlint/InitScriptCheck.pys   __init__   s    c         C   sO  | i ƒ  o d  Sn g  } xá| i ƒ  i ƒ  D]Í}
 t i |
 ƒ o·t i |
 ƒ i	 d ƒ } | i | ƒ | i ƒ  |
 d d @d j o t | d |
 ƒ n t i | ƒ o t | d |
 ƒ n | t i p | t i } | o t | d |
 ƒ n& t i | ƒ o t | d |
 ƒ n | t i p | t i } | o t | d |
 ƒ n& t i | ƒ o t | d	 |
 ƒ n t | i ƒ  d
 |
 d ƒ } | i d ƒ } | i ƒ  t i | ƒ o t | d |
 ƒ n t i | ƒ o t | d |
 ƒ n t  i | ƒ } | o t | d |
 ƒ n( | i	 d ƒ d j o t | d ƒ n t" i | ƒ } | o t | d |
 ƒ qû| i	 d ƒ }	 |	 | j of d } |	 d d j o- t% i& |	 | ƒ } | | j o
 d } qÕn | o t | d |
 |	 ƒ q÷qûq. q. Wt( | ƒ d j o t) i* | t i+ ƒ | d j o t | d | d ƒ n d  S(   Ni   i    i@  s   init-script-non-executables   init-script-name-with-dots$   init-script-without-chkconfig-postins   postin-without-chkconfigs#   init-script-without-chkconfig-preuns   preun-without-chkconfigs   /s   riÿÿÿÿs   no-status-entrys   no-reload-entrys   no-chkconfig-lines   -s   no-default-runlevels   subsys-not-useds   $s   incoherent-subsyss   incoherent-init-script-name(,   s   pkgs   isSources   lists   filess   keyss   fs   rc_regexs   searchs   basename_regexs   groups   basenames   appends
   printErrors   dot_in_name_regexs   matchs   rpms   RPMTAG_POSTINs   RPMTAG_POSTINPROGs   postins   chkconfig_regexs   RPMTAG_PREUNs   RPMTAG_PREUNPROGs   preuns   opens   dirNames   fds   reads   contents   closes   status_regexs   reload_regexs   printWarnings   chkconfig_content_regexs   ress   subsys_regexs   names   errors   Pkgs   substitute_shell_varss   values   lens   strings   lowers   RPMTAG_NAME(   s   selfs   pkgs   basenames   contents   ress   preuns   errors   fds   values   names   fs   lists   postin(    (    s%   /usr/share/rpmlint/InitScriptCheck.pys   check    s`     
#4(   s   __name__s
   __module__s   __init__s   check(    (    (    s%   /usr/share/rpmlint/InitScriptCheck.pys   InitScriptCheck   s   	s$   init-script-without-chkconfig-postinsY   The package contains an init script but doesn't contain a %post with
a call to chkconfig.s   postin-without-chkconfigsL   The package contains an init script but doesn't call chkconfig in its %post.s#   init-script-without-chkconfig-preunsZ   The package contains an init script but doesn't contain a %preun with
a call to chkconfig.s   preun-without-chkconfigsM   The package contains an init script but doesn't call chkconfig in its %preun.s   no-status-entrys   In your init script (/etc/rc.d/init.d/your_file), you don't
have a 'status' entry, which is necessary for a good functionality.s   no-reload-entrys   In your init script (/etc/rc.d/init.d/your_file), you don't
have a 'reload' entry, which is necessary for a good functionality.s   no-chkconfig-linesh   The init script doesn't contain a chkconfig line to specify the runlevels at which
to start and stop it.s   no-default-runlevels8   The default runlevel isn't specified in the init script.s   subsys-not-useds‹   While your program is running, you have to put a lock file in
/var/lock/subsys/. To see an example, look at this directory on your
machine.s   incoherent-subsyssÈ   The filename of your lock file in /var/lock/subsys/ is incoherent
with your actual init script name. For example, if your script name
is httpd, you have to put a 'httpd' file in your subsys directory.s   incoherent-init-script-namesJ   The init script name should be the same as the package name in lower case.s   init-script-name-with-dotsj   The init script name should not contains a dot in the name. 
it would not be taken in account by chkconfigs   init-script-non-executablesg   The init script should have at least the execution bit set for root 
in order to be run during the boot(   s   Filters   AbstractChecks   res   rpms   Pkgs   strings   compiles   rc_regexs	   MULTILINEs   chkconfig_content_regexs   subsys_regexs   chkconfig_regexs   status_regexs   reload_regexs   basename_regexs   dot_in_name_regexs   InitScriptChecks   checks   Configs   infos
   addDetails(   s   subsys_regexs   chkconfig_content_regexs   strings   InitScriptChecks   chkconfig_regexs   dot_in_name_regexs   rc_regexs   status_regexs   basename_regexs   res   Pkgs   reload_regexs   rpms   checks   AbstractCheck(    (    s%   /usr/share/rpmlint/InitScriptCheck.pys   ?   sT   					H	
