Skip to content

Commit

Permalink
doc: add packages to needs-restarting conf
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos authored and Conan-Kudo committed Feb 4, 2021
1 parent 247926c commit fa0c8b7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/needs_restarting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,21 @@ All general DNF options are accepted, see `Options` in :manpage:`dnf(8)` for det

``-s, --services``
Only list the affected systemd services.

-------------
Configuration
-------------

``/etc/dnf/plugins/needs-restarting.d/``

``/etc/dnf/plugins/needs-restarting.d/pkgname.conf``

Packages can be added to ``needs-restarting`` via conf files in config
directory. Config files need to have ``.conf`` extension or will be ignored.

More than one package is allowed in each file (one package per line) although
it is advised to use one file for each package.

Example::

echo "dwm" > /etc/dnf/plugins/needs-restarting.d/dwm.conf

0 comments on commit fa0c8b7

Please sign in to comment.