-
Notifications
You must be signed in to change notification settings - Fork 363
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 f7a64b3
Refactor: daemons,libcrmcommon: Add pcmk__daemon_ipc_running.
clumens af74ea3
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_attrd_ipc.
clumens 2243f23
Refactor: daemons: Add an atexit handler for certain cleanup in execd.
clumens e616acd
Refactor: daemons: Unindent drain_check and lrmd_drain_alerts.
clumens ef734f4
Refactor: daemons: Unindent lrmd_shutdown.
clumens 7d1ab1a
Refactor: daemons: Rename exit_executor to execd_cleanup.
clumens f85c956
Refactor: daemons: Add execd_quit_main_loop.
clumens 2954ac4
Refactor: daemons: Use execd_quit_main_loop for most remote cases.
clumens 953184b
Refactor: daemons: Shut down properly from inside handle_shutdown_nack.
clumens 8239004
Refactor: daemons: Move lrmd_shutdown into execd_quit_main_loop.
clumens 0a0b9f2
Refactor: daemons: Add pcmk__daemon_t to execd for exit status.
clumens 01103ee
Refactor: daemons: Use pcmk__daemon_t for shutting_down in execd.
clumens 883ca18
Refactor: libcrmcommon: Add a quit function to pcmk__daemon_t.
clumens 092354e
Refactor: daemons: Finish converting execd to using pcmk__daemon_t.
clumens 20f0155
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_execd_ipc.
clumens c6cfe25
Refactor: libcrmcommon,daemons: Move start_time into the daemon object.
clumens 9aa4e32
Refactor: daemons: Add an atexit handler for certain cleanup in fenced.
clumens 6207d25
Refactor: daemons: Improve the stonith_cleanup function.
clumens a5eef70
Refactor: daemons: Add pcmk__daemon_t to fenced for exit status.
clumens 3bb8287
Refactor: daemons: Use pcmk__daemon_t for shutting_down in fenced.
clumens 8185d21
Refactor: daemons: Use pcmk__daemon_t for stand_alone in fenced.
clumens 511c915
Refactor: daemons: Finish converting fenced to using pcmk__daemon_t.
clumens 6ce4cfe
Refactor: daemons: Get rid of the options struct in fenced.
clumens 77114ec
Refactor: libcrmcommon,daemons: Add pcmk__generic_ipc_running.
clumens be5487c
Refactor: daemons: Consolidate cluster connection messages.
clumens 499b286
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_fenced_ipc.
clumens 1f4da04
Refactor: daemons: Add an atexit handler for certain cleanup in pacem…
clumens 0504aa3
Refactor: daemons: Don't call crm_exit in create_pcmk_dirs.
clumens c439bec
Refactor: daemons: Minor best practices around pacemakerd_read_config.
clumens 543b2ac
Refactor: daemons: Don't call crm_exit if pcmkd_read_config fails.
clumens 47fc01d
Refactor: daemons: Rename rc to cs_rc in pcmk_read_config.
clumens add25c8
Refactor: daemons: Call cmap_finalize on all paths in pcmkd_read_config.
clumens e48a2ff
Refactor: daemons: Move pacemakerd cleanup into its own function.
clumens 80d0452
Refactor: daemons: Simplify a check in pacemakerd_event_cb.
clumens 07c8e50
Refactor: daemons: Add a comment to start_child.
clumens 4f92600
Refactor: daemons: Don't call crm_exit on some easy cases.
clumens 9a5209b
Refactor: daemons: Add pcmk__daemon_t to pacemakerd for exit status.
clumens b03e8bd
Refactor: daemons: Finish converting pacemakerd to using pcmk__daemon_t.
clumens 35e0672
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_pacemakerd_…
clumens 149c529
Refactor: daemons: Add an atexit handler for certain cleanup in sched…
clumens 269ecb2
Refactor: daemons: Move schedulerd cleanup into its own function.
clumens 233fc10
Refactor: daemons: Standardize how schedulerd exits.
clumens faf3d10
Refactor: daemons: Get rid of the options struct in scheduler.
clumens 74a9378
Refactor: daemons: Add pcmk__daemon_t to schedulerd for exit status.
clumens 618d790
Refactor: daemons: Finish converting schedulerd to using pcmk__daemon_t.
clumens dd858f2
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_schedulerd_…
clumens f8539a4
Refactor: libcrmcommon,daemons: Don't exit in pcmk__serve_based_ipc.
clumens 9b91da7
Refactor: daemons: Don't allow a second schedulerd instance to start.
clumens 8375165
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.