Update server/daemon/src/main.rs

This commit is contained in:
Arian van Putten 2025-04-02 19:38:31 +01:00 committed by GitHub
parent df8559e245
commit 526667e65d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -764,7 +764,7 @@ async fn kanidm_main(config: Configuration, opt: KanidmdParser) -> ExitCode {
#[cfg(target_os = "linux")]
{
if let Ok(monotonic_usec) = sd_notify::NotifyState::monotonic_usec_now() {
else {
} else {
error!("CRITICAL!!! Unable to access clock monotonic time. SYSTEMD WILL KILL US.");
};
let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Reloading, monotonic_usec]);