mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
systemd-notify: add page (#10618)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
f351d273f7
commit
91e7b2bbfc
1 changed files with 17 additions and 0 deletions
17
pages/linux/systemd-notify.md
Normal file
17
pages/linux/systemd-notify.md
Normal file
|
@ -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: <https://www.freedesktop.org/software/systemd/man/systemd-notify.html>.
|
||||
|
||||
- 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...}}"`
|
Loading…
Add table
Reference in a new issue