From 91e7b2bbfc140b521fb7c4fa711a871625ebe221 Mon Sep 17 00:00:00 2001 From: Shashank Hebbar Date: Sun, 20 Aug 2023 19:58:51 +0530 Subject: [PATCH] systemd-notify: add page (#10618) Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/linux/systemd-notify.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/systemd-notify.md diff --git a/pages/linux/systemd-notify.md b/pages/linux/systemd-notify.md new file mode 100644 index 000000000..19a528815 --- /dev/null +++ b/pages/linux/systemd-notify.md @@ -0,0 +1,17 @@ +# systemd-notify + +> Notify the service manager about start-up completion and other daemon status changes. +> This command is useless outside systemd service scripts. +> More information: . + +- Notify systemd that the service has completed its initialization and is fully started. It should be invoked when the service is ready to accept incoming requests: + +`systemd-notify --booted` + +- Signal to systemd that the service is ready to handle incoming connections or perform its tasks: + +`systemd-notify --ready` + +- Provide a custom status message to systemd (this information is shown by `systemctl status`): + +`systemd-notify --status="{{Add custom status message here...}}"`