dnf-plugins-core/0009-doc-needs-restarting-uses-UnitsLoadStartTimestamp-bo.patch
2025-01-23 15:00:30 -05:00

32 lines
1.3 KiB
Diff

From 54b9f83879dfb7bccfd610845ae9981c55f776b5 Mon Sep 17 00:00:00 2001
From: Evan Goode <mail@evangoo.de>
Date: Wed, 22 Jan 2025 16:46:52 +0000
Subject: [PATCH 2/2] doc: needs-restarting uses UnitsLoadStartTimestamp boot
time
---
doc/needs_restarting.rst | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/needs_restarting.rst b/doc/needs_restarting.rst
index e1fae48..fea407e 100644
--- a/doc/needs_restarting.rst
+++ b/doc/needs_restarting.rst
@@ -36,8 +36,12 @@ Description
Note that in most cases a process should survive update of its binary and libraries it is using without requiring to be restarted for proper operation. There are however specific cases when this does not apply. Separately, processes often need to be restarted to reflect security updates.
.. note::
- Needs-restarting will try to guess the boot time using two different methods:
+ Needs-restarting will try to guess the boot time using three different methods:
+ ``UnitsLoadStartTimestamp``
+ D-Bus property on ``/org/freedesktop/systemd1``.
+ Works unless the system was not booted with systemd,
+ such as in (most) containers.
``st_mtime of /proc/1``
Reflects the time the first process was run after booting.
This works for all known cases except machines without
--
2.48.1