]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
main: improve error message about failed notification
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 May 2025 07:17:42 +0000 (09:17 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 May 2025 12:47:36 +0000 (14:47 +0200)
Mention the NOTIFY_SOCKET variable to make it more obvious what is
preventing chronyd from starting in case it's unexpectedly inherited in
a chroot etc.

main.c

diff --git a/main.c b/main.c
index bf9c66bf8ae4e3526ce11b325c35f5c5ab34cb4a..77d62e36f4ab1bcce5453161209c55d53f5726cf 100644 (file)
--- a/main.c
+++ b/main.c
@@ -126,7 +126,7 @@ notify_system_manager(int start)
   sock_fd = SCK_OpenUnixDatagramSocket(path, NULL, 0);
 
   if (sock_fd < 0 || SCK_Send(sock_fd, message, strlen(message), 0) != strlen(message))
-    LOG_FATAL("Could not send notification");
+    LOG_FATAL("Could not send notification to $NOTIFY_SOCKET");
 
   SCK_CloseSocket(sock_fd);
 #endif