main: improve error message about failed notification

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.
This commit is contained in:
Miroslav Lichvar
2025-05-22 09:17:42 +02:00
parent 551ad40a04
commit 4b2b6bbf97

2
main.c
View File

@@ -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