From afe4fcba5e3d8d860d97d8843c5e53676080fc1b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 16 Mar 2022 15:49:35 +0800 Subject: [PATCH] pkgmgmt: for systemd revision, add how to restart systemd without reboot --- chapter08/pkgmgt.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index 3814b02b0..27e9c9cda 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -102,7 +102,7 @@ you have to downgrade a package, or the package changes the versioning scheme of library files suddenly. - If a package containing a shared library is updated, + If a package containing a shared library is updated, and the name of library doesn't change, but a severe issue (especially, a security vulnerability) is fixed, all running programs linked to the shared library should be restarted. The following @@ -120,6 +120,13 @@ restart sshd service, then logout, login again, and rerun that command to confirm nothing is still using the deleted libraries. + + + + If the systemd daemon (running as PID 1) is + linked to the updated library, you can restart it without reboot + by running systemctl daemon-reexec as the + root user.