-
Notifications
You must be signed in to change notification settings - Fork 9
/
restart-services.1
97 lines (76 loc) · 2.96 KB
/
restart-services.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.\" restart-services.1 - restart services as indicated by checkrestart
.\" Copyright (C) 2012 Tomás Pospíšek
.\" Based on the checkrestart manual page by Javier Fernandez-Sanguino
.\" Everybody is allowed to distribute this manual page,
.\" to modify it, and to distribute modifed versions of it.
.TH restart-services 1 "June 07 2012" "debian\-goodies" "debian\-goodies"
.SH NAME
restart-services \- restart services after an upgrade
.SH SYNOPSIS
.B restart-services [ -hsa ]
.SH DESCRIPTION
The
.B restart-services
program tries to determine if there are processes in the system
that need to be restarted after a system upgrade by calling
\fIcheckrestart\fR\|(1) and then restarts them. This can be necessary since
an upgrade will usually install new system libraries and running processes
will still be using the old versions of the libraries. In \fIstable\fP
Debian GNU/Linux systems this is typically needed to eliminate a system
exposure to a vulnerability which might have been fixed by upgrading a
library which that process makes use of.
.P
Consequently,
.B restart-services
is used as a tool to find outdated versions of libraries in use, and to
restart the respective services that are still using them, particularly
after security upgrades. Administrators should not, however, rely on it
completely (see the \fBBUGS\fP section of the \fIcheckrestart\fR\|(1)
manpage).
.P
This script needs to run as root in order to obtain the information it needs
for analysis and to restart the services.
.SH OPTIONS
.TP
.BI -h, --help
Show the program help and exit.
.TP
.BI -s, --simulate
Don't change anything, just print out what would be done.
.TP
.BI -a
Tell restart-services that it is being run by apt-get: add headers to output.
.SH EXIT STATUS
The program will exit with error (1) if it couldn't restart services
and with warning (2) if there were programms running that it could
not figure out how to restart. Otherwise, it will always exit with
error status 0.
.SH BUGS
Please see the \fBBUGS\fP section of the \fIcheckrestart\fR\|(1) manpage
for possible problems with restart-services.
.P
If you find a false positive in
.B restart-services
please provide the following information when submitting a bug report:
.IP \(em
The output of \fBcheckrestart\fP using the \fI-v\fP (verbose) option.
.IP \(em
The output of running the following command as root:
.PP
lsof | egrep 'delete|DEL|path inode'
.PP
.SH SEE ALSO
.B lsof(8), checkrestart(1)
.SH AUTHOR
.B restart-services
was written by Michal Fiala for Sourcepole.ch.
.PP
This manpage was written by Tomáš Pospíšek <tpo_deb@sourcepole.ch>.
.SH COPYRIGHT AND LICENCE
Copyright (C) 2012 Sourcepole.ch
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
On Debian systems, a copy of the GNU General Public License may be
found in /usr/share/common-licenses/GPL.