Skip to content
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

fix: Reload the service when needed #303

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

Jakuje
Copy link
Collaborator

@Jakuje Jakuje commented Dec 16, 2024

The change of sysconfig requires the full restart instead of only reload.

I did not figure out a better way to avoid doing both in this case, so comments and suggestions welcomed.

Fixes: #302

@Jakuje
Copy link
Collaborator Author

Jakuje commented Dec 16, 2024

For the record, the CI issues are fixed in #304 so once it will be in, we can rebase this.

Some changes, such as sysconfig change, requires the service to be
restarted.

Fixes: willshersystems#302

Signed-off-by: Jakub Jelen <[email protected]>
The documentation says there is only one global scope for handlers:

> There is only one global scope for handlers (handler names and listen topics)
> regardless of where the handlers are defined. This also includes handlers
> defined in roles.

So following the naming convention as we do in all the other variables
sounds like a good idea.

https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_handlers.html

Signed-off-by: Jakub Jelen <[email protected]>
@Jakuje Jakuje force-pushed the restart-on-sysconfig-change branch from 5bc4577 to 86ea486 Compare December 17, 2024 15:22
@Jakuje
Copy link
Collaborator Author

Jakuje commented Dec 17, 2024

(rebased to address the CI issues)

@mattwillsher
Copy link
Member

Thanks @Jakuje. Could you add doc updates for #301 and #236 under this change as they are reload/restart related and doc only changes?

@Jakuje
Copy link
Collaborator Author

Jakuje commented Dec 17, 2024

Right. This change will have the same issue as the #236, which I already forgot about. Let me have a look into that.

This did not work since 43ed7c1, for over 7 years so instead
of restoring this behavior, updating documentation to match
current beharior sounds more reasonable.

Fixes: willshersystems#236

Signed-off-by: Jakub Jelen <[email protected]>
Copy link
Member

@mattwillsher mattwillsher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little clarification around the include_roles matter, up to you if you want to include it.
Thanks for your work here. Satisfying to see some many issues close in one PR :)

README.md Outdated Show resolved Hide resolved
@mattwillsher
Copy link
Member

All good - please merge when ready 👍🏼

@Jakuje
Copy link
Collaborator Author

Jakuje commented Dec 19, 2024

Thank you for comments and reviews! I am not sure if we merge by rebasing/merge commit or squashing to keep the automation working correctly so I will leave the merge on you or Rich.

@mattwillsher
Copy link
Member

By squash to preserve the fix: prefix, I think. @richm does that sound correct?

@spetrosi
Copy link
Contributor

The automation works with PR titles, not with commits. Commits can have any format, they should not be consistent with PR titles.
Some time ago we did use commits for automation, but we reverted this to keep commits flexible and developer-oriented, while PRs descriptions are more user-oriented.

@Jakuje
Copy link
Collaborator Author

Jakuje commented Dec 19, 2024

Thanks for clarification. Then I will do rebase & merge to preserve the commits.

@Jakuje Jakuje merged commit a1f6622 into willshersystems:main Dec 19, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants