1NEEDS-RESTARTING(1) dnf-plugins-core NEEDS-RESTARTING(1)
2
3
4
6 needs-restarting - redirecting to DNF needs-restarting Plugin
7
8 Check for running processes that should be restarted.
9
11 dnf needs-restarting [-u] [-r] [-s]
12
14 needs-restarting looks through running processes and tries to detect
15 those that use files from packages that have been updated after the
16 given process started. Such processes are reported by this tool.
17
18 Note that in most cases a process should survive update of its binary
19 and libraries it is using without requiring to be restarted for proper
20 operation. There are however specific cases when this does not apply.
21 Separately, processes often need to be restarted to reflect security
22 updates.
23
25 All general DNF options are accepted, see Options in dnf(8) for de‐
26 tails.
27
28 -u, --useronly
29 Only consider processes belonging to the running user.
30
31 -r, --reboothint
32 Only report whether a reboot is required (exit code 1) or not
33 (exit code 0).
34
35 -s, --services
36 Only list the affected systemd services.
37
39 /etc/dnf/plugins/needs-restarting.d/
40
41 /etc/dnf/plugins/needs-restarting.d/pkgname.conf
42
43 Packages can be added to needs-restarting via conf files in config di‐
44 rectory. Config files need to have .conf extension or will be ignored.
45
46 More than one package is allowed in each file (one package per line)
47 although it is advised to use one file for each package.
48
49 Example:
50
51 echo "dwm" > /etc/dnf/plugins/needs-restarting.d/dwm.conf
52
54 See AUTHORS in your Core DNF Plugins distribution
55
57 2023, Red Hat, Licensed under GPLv2+
58
59
60
61
624.4.3 Oct 06, 2023 NEEDS-RESTARTING(1)