31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
|
Index: InitScriptCheck.py
|
||
|
===================================================================
|
||
|
RCS file: /cooker/soft/rpmlint/InitScriptCheck.py,v
|
||
|
retrieving revision 1.14
|
||
|
diff -u -r1.14 InitScriptCheck.py
|
||
|
--- InitScriptCheck.py 15 Apr 2005 20:01:46 -0000 1.14
|
||
|
+++ InitScriptCheck.py 20 Jun 2005 10:20:15 -0000
|
||
|
@@ -74,8 +74,8 @@
|
||
|
if not res:
|
||
|
printError(pkg, 'no-chkconfig-line', f)
|
||
|
else:
|
||
|
- if res.group(1) == '-':
|
||
|
- printWarning(pkg, 'no-default-runlevel')
|
||
|
+ if res.group(1) != '-':
|
||
|
+ printWarning(pkg, 'service-default-enabled', f)
|
||
|
|
||
|
res=subsys_regex.search(content)
|
||
|
if not res:
|
||
|
@@ -126,8 +126,9 @@
|
||
|
'''The init script doesn't contain a chkconfig line to specify the runlevels at which
|
||
|
to start and stop it.''',
|
||
|
|
||
|
-'no-default-runlevel',
|
||
|
-'''The default runlevel isn't specified in the init script.''',
|
||
|
+'service-default-enabled',
|
||
|
+'''The service is enabled by default after "chkconfig --add"; most services
|
||
|
+should not be. Use "-" to correct this if appropriate.''',
|
||
|
|
||
|
'subsys-not-used',
|
||
|
'''While your program is running, you have to put a lock file in
|