mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
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:
2
main.c
2
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
|
||||
|
||||
Reference in New Issue
Block a user