31 | 31 |
.SH OPTIONS
|
32 | 32 |
|
33 | 33 |
.TP
|
34 | |
.BI -h, --help
|
|
34 |
\fB\-h\fP, \fB \-\-help\fP
|
35 | 35 |
Show the program help and exit.
|
36 | 36 |
|
37 | 37 |
.TP
|
38 | |
.BI -v, --verbose
|
|
38 |
\fB\-v\fP, \fB\-\-verbose\fP
|
39 | 39 |
Generate detailed output. This output includes the list of all
|
40 | 40 |
processes found using deleted files or descriptors as well as the deleted files
|
41 | 41 |
and descriptors found.
|
42 | 42 |
|
43 | 43 |
.TP
|
44 | |
.BI -p, --package
|
|
44 |
\fB\-p\fP, \fB\-\-package\fP
|
45 | 45 |
Only process deleted files that belong to a package, ignoring deleted files
|
46 | 46 |
which do not have an associated package in the package system.
|
47 | 47 |
|
48 | 48 |
.TP
|
49 | |
.BI -a, --all
|
|
49 |
\fB\-a\fP, \fB\-\-all\fP
|
50 | 50 |
Process all deleted files regardless of location. This makes
|
51 | 51 |
the program analyse deleted files even if they would be discarded
|
52 | 52 |
because they are located in locations, such as
|
53 | 53 |
.I /tmp
|
54 | 54 |
, which are known to produce false positives. It will take preceded if used
|
55 | 55 |
simultaneously with the
|
56 | |
.I -p
|
|
56 |
.B -p
|
57 | 57 |
option.
|
58 | 58 |
|
59 | 59 |
.TP
|
60 | |
.BI -b\ file, --blacklist=file
|
|
60 |
\fB\-b\fP \fIfile\fP, \fB\-\-blacklist=\fP\fIfile\fP
|
61 | 61 |
Read a blacklist of regular expressions from
|
62 | 62 |
.I file.
|
63 | 63 |
Any files matching the patterns will be ignored. More than one pattern
|
64 | 64 |
can be provided by using this option more than once.
|
65 | 65 |
|
66 | 66 |
.TP
|
67 | |
.BI -i\ name, --ignore=name
|
|
67 |
\fB\-i\fP \fIname\fP, \fB\-\-ignore=\fP\fIname\fP
|
68 | 68 |
Ignore services that are associated to the package name provided in
|
69 | 69 |
.I name.
|
70 | 70 |
More than one package can be provided by using this option more than once.
|
71 | 71 |
|
72 | |
|
73 | |
.BI -e\ pid, --excludepid=pid
|
|
72 |
.TP
|
|
73 |
\fB\-e\fP \fIpid\fP, \fB\-\-excludepid=\fP\fIpid\fP
|
74 | 74 |
Exclude processes running with
|
75 | 75 |
.I pid
|
76 | 76 |
when looking for open files. This can speed up checkrestart on systems with a
|
77 | |
large number of open files. Note: this option only works if lsof is not used.
|
78 | |
More than one process identifier can be provided by using this option more than
|
79 | |
once.
|
80 | |
|
81 | |
.TP
|
82 | |
.BI -n, --nolsof
|
|
77 |
large number of open files. Note: this option only works if
|
|
78 |
.B lsof(8)
|
|
79 |
is not used. More than one process identifier can be provided by
|
|
80 |
using this option more than once.
|
|
81 |
|
|
82 |
.TP
|
|
83 |
\fB\-n\fP, \fB\-\-nolsof\fP
|
83 | 84 |
Do not use
|
84 | 85 |
.B lsof(8)
|
85 | 86 |
even if available. In some systems where there are large number of files the
|
|
151 | 152 |
3775 /sbin/dhclient
|
152 | 153 |
|
153 | 154 |
.SH BUGS
|
154 | |
This program might fail if the output of the \fIlsof\fP utility changes since it
|
|
155 |
This program might fail if the output of the \fBlsof(8)\fP utility changes since it
|
155 | 156 |
depends on it to detect which deleted files are used by processes. It might
|
156 | 157 |
also output some false positives depending on the processes' behaviour since
|
157 | 158 |
it does not check yet if the (deleted) files in use are really libraries.
|
|
162 | 163 |
please provide the following information when submitting a bug report:
|
163 | 164 |
|
164 | 165 |
.IP \(em
|
165 | |
The output of \fBcheckrestart\fP using the \fI-v\fP (verbose) option.
|
|
166 |
The output of \fBcheckrestart\fP using the \fB-v\fP (verbose) option.
|
166 | 167 |
|
167 | 168 |
.IP \(em
|
168 | 169 |
The output of running the following command as root:
|
|
171 | 172 |
.PP
|
172 | 173 |
|
173 | 174 |
.P
|
174 | |
.B Checkrestart
|
|
175 |
.B checkrestart
|
175 | 176 |
is also sensitive to the kernel version in use. And might fail to work with newer
|
176 | 177 |
(or older) versions.
|
177 | 178 |
|
|
179 | 180 |
A rewrite to make it less dependent on \fIlsof\fP could improve this, however.
|
180 | 181 |
|
181 | 182 |
.SH SEE ALSO
|
182 | |
.B lsof(8), needrestart(8)
|
|
183 |
\fBlsof(8)\fP, \fBneedrestart(8)\fP
|
183 | 184 |
|
184 | 185 |
Please note that the
|
185 | 186 |
.B needrestart
|
|
187 | 188 |
based on deleted files. Results might not be exactly the same as those provided
|
188 | 189 |
by
|
189 | 190 |
.B checkrestart
|
190 | |
.TP
|
191 | |
|
192 | 191 |
|
193 | 192 |
.SH AUTHOR
|
194 | 193 |
|
|
200 | 199 |
.SH COPYRIGHT AND LICENCE
|
201 | 200 |
|
202 | 201 |
Copyright (C) 2001 Matt Zimmerman <mdz@debian.org>
|
|
202 |
.br
|
203 | 203 |
Copyright (C) 2007,2010-2015 Javier Fernandez-Sanguino <jfs@debian.org>
|
204 | 204 |
|
205 | 205 |
This program is free software; you can redistribute it and/or modify
|