-
Notifications
You must be signed in to change notification settings - Fork 365
Introduce a pcmk__daemon_t object and use it for mainloop/shutdown #4157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
clumens
wants to merge
60
commits into
ClusterLabs:main
Choose a base branch
from
clumens:daemon-object
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
bb20b4c
Refactor: daemons: Rearrange the big cleanup block at the end of attrd.
clumens 12d7c5d
Refactor: daemons: Add an atexit handler for certain cleanup in attrd.
clumens 87ed6eb
Refactor: daemons: Move cleanup out of attrd_shutdown.
clumens f2f4120
Refactor: daemons: Move attrd cleanup into its own function.
clumens adb91c1
Refactor: daemons: Split up attrd_shutdown and attrd_quit_main_loop.
clumens d4f526f
Refactor: daemons: Make attrd_shutdown static.
clumens dbf7107
Refactor: libcrmcommon,daemons: Introduce the pcmk__daemon_t object.
clumens a5c5073
Refactor: daemons: Move shutting_down into pcmk__daemon_t.
clumens 72d1fad
Refactor: daemons: Add the standalone mode flag to pcmk__daemon_t.
clumens 1145469
Refactor: daemons: Move the exit status into pcmk__daemon_t.
clumens 845a338
Refactor: libcrmcommon,daemons: Make pcmk__daemon_quit more useful.
clumens b010a05
Refactor: daemons,libcrmcommon: Add pcmk__daemon_ipc_running.
clumens 1c6a408
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_attrd_ipc.
clumens 252a174
Refactor: daemons: Add an atexit handler for certain cleanup in execd.
clumens 87a5201
Refactor: daemons: Unindent drain_check and lrmd_drain_alerts.
clumens ebcc671
Refactor: daemons: Unindent lrmd_shutdown.
clumens cdba0e9
Refactor: daemons: Rename exit_executor to execd_cleanup.
clumens e748c7a
Refactor: daemons: Add execd_quit_main_loop.
clumens a4130ee
Refactor: daemons: Use execd_quit_main_loop for most remote cases.
clumens eba8299
Refactor: daemons: Shut down properly from inside handle_shutdown_nack.
clumens b26fe14
Refactor: daemons: Move lrmd_shutdown into execd_quit_main_loop.
clumens 1ae6b3a
Refactor: daemons: Add pcmk__daemon_t to execd for exit status.
clumens da0d010
Refactor: daemons: Use pcmk__daemon_t for shutting_down in execd.
clumens 6db5173
Refactor: libcrmcommon: Add a quit function to pcmk__daemon_t.
clumens ff4dd07
Refactor: daemons: Finish converting execd to using pcmk__daemon_t.
clumens 181a7bc
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_execd_ipc.
clumens da27e4c
Refactor: libcrmcommon,daemons: Move start_time into the daemon object.
clumens f6cf94b
Refactor: daemons: Add an atexit handler for certain cleanup in fenced.
clumens 860c5e2
Refactor: daemons: Improve the stonith_cleanup function.
clumens 035871c
Refactor: daemons: Add pcmk__daemon_t to fenced for exit status.
clumens d377bb5
Refactor: daemons: Use pcmk__daemon_t for shutting_down in fenced.
clumens 2c9e976
Refactor: daemons: Use pcmk__daemon_t for stand_alone in fenced.
clumens cf260eb
Refactor: daemons: Finish converting fenced to using pcmk__daemon_t.
clumens 4422d47
Refactor: daemons: Get rid of the options struct in fenced.
clumens 3462579
Refactor: libcrmcommon,daemons: Add pcmk__generic_ipc_running.
clumens 320e93e
Refactor: daemons: Consolidate cluster connection messages.
clumens 96aee37
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_fenced_ipc.
clumens cf7c0aa
Refactor: daemons: Add an atexit handler for certain cleanup in pacem…
clumens 6b70c96
Refactor: daemons: Don't call crm_exit in create_pcmk_dirs.
clumens a5d4ff6
Refactor: daemons: Minor best practices around pacemakerd_read_config.
clumens 98abe3a
Refactor: daemons: Don't call crm_exit if pcmkd_read_config fails.
clumens 6db78b9
Refactor: daemons: Rename rc to cs_rc in pcmk_read_config.
clumens 3ea4aea
Refactor: daemons: Call cmap_finalize on all paths in pcmkd_read_config.
clumens c643f8f
Refactor: daemons: Move pacemakerd cleanup into its own function.
clumens 2a38d15
Refactor: daemons: Simplify a check in pacemakerd_event_cb.
clumens a91bdad
Refactor: daemons: Add a comment to start_child.
clumens 34f114c
Refactor: daemons: Don't call crm_exit on some easy cases.
clumens 76b959f
Refactor: daemons: Add pcmk__daemon_t to pacemakerd for exit status.
clumens 870b1e4
Refactor: daemons: Finish converting pacemakerd to using pcmk__daemon_t.
clumens 4d1224b
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_pacemakerd_…
clumens 4e87b84
Refactor: daemons: Add an atexit handler for certain cleanup in sched…
clumens 83ebdb4
Refactor: daemons: Move schedulerd cleanup into its own function.
clumens 7d1a553
Refactor: daemons: Standardize how schedulerd exits.
clumens 596c6de
Refactor: daemons: Get rid of the options struct in scheduler.
clumens 80865e8
Refactor: daemons: Add pcmk__daemon_t to schedulerd for exit status.
clumens d7a6dab
Refactor: daemons: Finish converting schedulerd to using pcmk__daemon_t.
clumens 385eba4
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_schedulerd_…
clumens 28bca87
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_based_ipc.
clumens 7d2c106
Refactor: daemons: Don't allow a second schedulerd instance to start.
clumens e64e8dc
Refactor: daemons: Remove unnecessary forward function declarations.
clumens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.