-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: tools: crm_mon --daemonize should update when disconnected
With crm_mon --daemonize, currently the output will continue to show the last known status after the cluster is stopped on the local node. This commit causes it to write "Not connected to CIB" (and more specific details) to the output file: * before the initial connection; * as soon as the CIB connection is destroyed; and * every time a reconnection attempt fails; External agents are notified via traps rather than via output, so we can ignore them. We register the new message formatter functions directly instead of via crm_mon_register_messages(). The reason is that crm_mon_register_messages() is used for messages specific to the curses format, so that they can be registered from within crm_mon.c. The new crm-mon-disconnected formatter isn't used with console output; it's not really necessary, and it's more complicated to implement (attempts so far led to display issues after connection loss). In the future it might make sense to rename crm_mon_register_messages() in crm_mon_curses.c and reuse that name in crm_mon.c. Closes T15 Signed-off-by: Reid Wahl <[email protected]>
- Loading branch information
Showing
1 changed file
with
116 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters