From 6715fc716fc843c3877160a8220af935c159e789 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 14 Dec 2022 14:29:25 +0900 Subject: [PATCH] man: update documents for sd_id128_get_invocation() (cherry picked from commit f0d8358c245b4d0012d8db52dbf42bdebbe1b2bc) Related: RHEL-27512 --- man/sd_id128_get_machine.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/man/sd_id128_get_machine.xml b/man/sd_id128_get_machine.xml index 075caffb2b..cdab87ab63 100644 --- a/man/sd_id128_get_machine.xml +++ b/man/sd_id128_get_machine.xml @@ -94,10 +94,20 @@ has properties similar to the machine ID during that time. sd_id128_get_invocation() returns the invocation ID of the currently executed - service. In its current implementation, this reads and parses the $INVOCATION_ID environment - variable that the service manager sets when activating a service, see - systemd.exec5 for details. The - ID is cached internally. In future a different mechanism to determine the invocation ID may be added. + service. In its current implementation, this tries to read and parse the following: + + + The $INVOCATION_ID environment variable that the service manager sets when + activating a service. + + + An entry in the kernel keyring that the system service manager sets when activating a service. + + + + See systemd.exec5 + for details. The ID is cached internally. In future a different mechanism to determine the invocation ID + may be added. Note that sd_id128_get_machine_app_specific(), sd_id128_get_boot(), sd_id128_get_boot_app_specific(), and