[Initscripts-ng-commits] r1034 - /trunk/src/insserv/debian/check-archive-initd-scripts
pere at users.alioth.debian.org
pere at users.alioth.debian.org
Wed Oct 7 21:41:29 UTC 2009
Author: pere
Date: Wed Oct 7 21:41:28 2009
New Revision: 1034
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=1034
Log:
Report error for scripts not starting in run runlevel 2 while starting in runlevels 3-5.
Modified:
trunk/src/insserv/debian/check-archive-initd-scripts
Modified: trunk/src/insserv/debian/check-archive-initd-scripts
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/check-archive-initd-scripts?rev=1034&op=diff
==============================================================================
--- trunk/src/insserv/debian/check-archive-initd-scripts (original)
+++ trunk/src/insserv/debian/check-archive-initd-scripts Wed Oct 7 21:41:28 2009
@@ -144,8 +144,15 @@
if (!array_equal(['2', '3', '4', '5'], \@startrl) &&
!array_equal(['s'], \@startrl) &&
(!array_equal([], \@startrl) && @stoprl)) {
- warning("script $short does not start in the usual runlevels: ",
- join(" ", @startrl));
+ # Some obvious errors (runlevels 2-5 are equivalent in Debian)
+ if (array_equal(['3', '5'], \@startrl)
+ || array_equal(['3', '4', '5'], \@startrl)) {
+ error("script $short have inconsisten start runlevels: ",
+ join(" ", @startrl));
+ } else {
+ warning("script $short does not start in the usual runlevels: ",
+ join(" ", @startrl));
+ }
}
# And most scripts stop in runlevel (1) runlevels (0, 1, 6),
More information about the Initscripts-ng-commits
mailing list