Added some code to peer into a data structure in Maemian/Schedule.pm. Also added the
[maemian] / nokia-lintian / checks / init.d.desc
1 Check-Script: init.d
2 Author: Christian Schwarz <schwarz@debian.org>
3 Abbrev: ini
4 Type: binary
5 Needs-Info: init.d
6 Unpack-Level: 1
7
8 Tag: duplicate-updaterc.d-calls-in-postinst
9 Type: error
10 Info: The <tt>postinst</tt> script calls <tt>update-rc.d</tt> several
11  times for the same <tt>/etc/init.d</tt> script.
12
13 Tag: output-of-updaterc.d-not-redirected-to-dev-null
14 Type: info
15 Info: The output messages of the <tt>update-rc.d</tt> command should be
16  redirected to <tt>/dev/null</tt> because it is currently very chatty
17  per default.
18
19 Tag: preinst-calls-updaterc.d
20 Type: error
21 Info: The <tt>preinst</tt> package calls <tt>update-rc.d</tt>. Instead,
22  you should call it in the <tt>postinst</tt> script.
23 Ref: policy 9.3.3.1
24
25 Tag: duplicate-updaterc.d-calls-in-postrm
26 Type: error
27 Info: The <tt>postrm</tt> script calls <tt>update-rc.d</tt> several
28  times for the same <tt>/etc/init.d</tt> script.
29
30 Tag: prerm-calls-updaterc.d
31 Type: error
32 Info: The <tt>prerm</tt> package calls <tt>update-rc.d</tt>. Instead,
33  you should call it in the <tt>postrm</tt> script.
34 Ref: policy 9.3.3.1
35
36 Tag: postrm-does-not-call-updaterc.d-for-init.d-script
37 Type: error
38 Info: An <tt>/etc/init.d</tt> script which has been registered in the
39  <tt>postinst</tt> script is not de-registered in the
40  <tt>postrm</tt> script.
41
42 Tag: postrm-contains-additional-updaterc.d-calls
43 Type: error
44 Info: The <tt>postrm</tt> de-registers an <tt>/etc/init.d</tt> script which
45  has not been registered in the <tt>postinst</tt> script before.
46
47 Tag: file-in-etc-rc.d-marked-as-conffile
48 Type: error
49 Ref: policy 9.3.3
50 Info: The symbolic links in <tt>/etc/rc?.d</tt> may not be marked as conffiles.
51
52 Tag: init.d-script-not-marked-as-conffile
53 Type: warning
54 Ref: policy 9.3.2
55 Info: <tt>/etc/init.d</tt> scripts should be marked as conffiles.
56  .
57  This is usually an error, but the Policy allows for managing these files
58  manually in maintainer scripts and Lintian cannot reliably detect that.
59
60 Tag: init.d-script-does-not-implement-required-option
61 Type: error
62 Info: The <tt>/etc/init.d</tt> scripts have to support the following
63  command line arguments: start, stop, restart, force-reload.
64
65 Tag: init.d-script-not-included-in-package
66 Type: error
67 Info: The <tt>/etc/init.d</tt> script is registered in the
68  <tt>postinst</tt> script, but is not included in the package.
69
70 Tag: script-in-etc-init.d-not-registered-via-update-rc.d
71 Type: warning
72 Info: The package installs an <tt>/etc/init.d</tt> script which is
73  not registered in the <tt>postinst</tt> script. This is usually a bug,
74  unless you omit the links intentionally for some reason or create the
75  links some other way.
76
77 Tag: init.d-script-has-duplicate-lsb-section
78 Type: error
79 Ref: http://wiki.debian.org/LSBInitScripts
80 Info: This <tt>/etc/init.d</tt> script has more than one LSB keyword
81  section.  These sections start with <tt>### BEGIN INIT INFO</tt> and end
82  with <tt>### END INIT INFO</tt>.  There should be only one such section
83  per init script.
84
85 Tag: init.d-script-has-unterminated-lsb-section
86 Type: error
87 Ref: http://wiki.debian.org/LSBInitScripts
88 Info: This <tt>/etc/init.d</tt> script has an LSB keyword section starting
89  with <tt>### BEGIN INIT INFO</tt> but either has no matching <tt>### END
90  INIT INFO</tt> or has lines between those two markers that are not
91  comments.  The line number given is the first line that doesn't look like
92  part of an LSB keyword section.  There must be an end marker after all
93  the keyword settings and there must not be any lines between those
94  markers that do not begin with <tt>#</tt>.
95
96 Tag: init.d-script-has-duplicate-lsb-keyword
97 Type: warning
98 Ref: http://wiki.debian.org/LSBInitScripts
99 Info: The given keyword was set twice in the LSB keyword section in this
100  <tt>/etc/init.d</tt> script.  This is probably a mistake; the behavior of
101  setting the same keyword twice is undefined.
102
103 Tag: init.d-script-has-unknown-lsb-keyword
104 Type: warning
105 Ref: http://wiki.debian.org/LSBInitScripts
106 Info: The given keyword was set in the LSB keyword section in this
107  <tt>/etc/init.d</tt> script but isn't one of the known LSB keywords and
108  doesn't begin with <tt>X-</tt>.  One of the standard keywords may have
109  been misspelled.
110
111 Tag: init.d-script-has-bad-lsb-line
112 Type: warning
113 Ref: http://wiki.debian.org/LSBInitScripts
114 Info: This line in the LSB keyword section of an <tt>/etc/init.d</tt>
115  script doesn't match the required formatting of that section.  Note that
116  keyword settings must start with <tt>#</tt>, a single space, the keyword,
117  a colon, and some whitespace, followed by the value (if any).  Only the
118  Description keyword allows continuation lines, and continuation lines
119  must begin with <tt>#</tt> and either a tab or two or more spaces.
120
121 Tag: init.d-script-missing-lsb-section
122 Type: warning
123 Ref: http://wiki.debian.org/LSBInitScripts
124 Info: This <tt>/etc/init.d</tt> script does not have an LSB keyword
125  section (or the <tt>### BEGIN INIT INFO</tt> tag is incorrect).  This
126  section provides description and runlevel information in a standard
127  format and provides dependency information that can be used to
128  parallelize the boot process.  Please consider adding it.
129
130 Tag: init.d-script-missing-lsb-keyword
131 Type: warning
132 Ref: http://wiki.debian.org/LSBInitScripts
133 Info: This <tt>/etc/init.d</tt> script has an LSB keyword section, but it
134  is missing the given required LSB keyword.  If the value of this keyword
135  should be empty, please still include it in the LSB keyword section with
136  an empty value.
137
138 Tag: init.d-script-missing-lsb-short-description
139 Type: info
140 Ref: http://wiki.debian.org/LSBInitScripts
141 Info: This <tt>/etc/init.d</tt> script has an LSB keyword section, but it
142  is missing a Short-Description LSB keyword.  This field isn't directly
143  used currently, but adding it is still a good idea for documentation
144  purposes.
145
146 Tag: init.d-script-has-bad-start-runlevel
147 Type: warning
148 Ref: http://wiki.debian.org/LSBInitScripts
149 Info: The given runlevel specified in the Default-Start keyword of the LSB
150  keyword section of this <tt>/etc/init.d</tt> script isn't one of the
151  recognized standard runlevels (S, 0, 1, 2, 3, 4, 5, and 6).
152
153 Tag: init.d-script-has-bad-stop-runlevel
154 Type: warning
155 Ref: http://wiki.debian.org/LSBInitScripts
156 Info: The given runlevel specified in the Default-Stop keyword of the LSB
157  keyword section of this <tt>/etc/init.d</tt> script isn't one of the
158  recognized standard runlevels (0, 1, 2, 3, 4, 5, and 6).
159
160 Tag: init.d-script-has-conflicting-start-stop
161 Type: warning
162 Ref: http://wiki.debian.org/LSBInitScripts
163 Info: The given runlevel was included in both the Default-Start and
164  Default-Stop keywords of the LSB keyword section of this
165  <tt>/etc/init.d</tt> script.  Since it doesn't make sense to both start
166  and stop a service in the same runlevel, there is probably an error in
167  one or the other of these keywords.
168
169 Tag: init-d-script-stops-in-s-runlevel
170 Type: warning
171 Info: This <tt>/etc/init.d</tt> script specifies the S runlevel in
172  Default-Stop in its LSB keyword section.  The S runlevel is not a real
173  runlevel and is only used during boot.  There is no way to switch to it
174  and hence no use for stop scripts for it, so S should be removed from
175  Default-Stop.