LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

systemd-notify

Notify service manager about status changes

TLDR

Notify systemd that the service has completed initialization
$ systemd-notify --booted
copy
Signal to systemd that the service is ready
$ systemd-notify --ready
copy
Provide a custom status message to systemd
$ systemd-notify --status "[Add custom status message here...]"
copy

SYNOPSIS

systemd-notify [options] [variable=value...]

DESCRIPTION

systemd-notify notifies the service manager about start-up completion and other daemon status changes. It is primarily used within systemd service scripts for services with Type=notify.The status text provided with --status is displayed by systemctl status. This allows services to communicate their current state and progress to administrators.

PARAMETERS

--ready

Signal service readiness to systemd
--booted
Check if system was booted with systemd
--status _text_
Send status text to service manager
--pid _pid_
Inform about main PID of daemon
--uid _user_
Specify the user to notify as
--reloading
Signal that service is reloading configuration
--stopping
Signal that service is stopping

INSTALL

sudo apt install systemd
copy
sudo dnf install systemd
copy
sudo pacman -S systemd
copy
sudo zypper install systemd
copy
brew install systemd
copy
nix profile install nixpkgs#systemd
copy

CAVEATS

Only useful within systemd service contexts. The service must be configured with Type=notify or Type=notify-reload in its unit file. Has no effect when run outside of systemd services. Part of the systemd suite.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid