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

(PE-36861) Add a needrestart conf file for debian packages #621

Merged

Conversation

nmburgan
Copy link
Contributor

In Ubuntu 22, needrestart is now called by default whenever a package is installed via apt. Because our packages lay down a temp directory for use by the service, when the services create and modify files in those temp dirs, needrestart thinks the service needs to be restarted. Because we manage restarting our services as needed, this drops a file in /etc/needrestart/conf.d that adds the service to the list of services needrestart should ignore.

Note that this will drop the file regardless of if needrestart is present on the system (e.g. Ubuntu 18), but it should be harmless if needrestart isn't present.

@nmburgan nmburgan requested review from a team as code owners October 12, 2023 23:15
In Ubuntu 22, needrestart is now called by default whenever a package is installed via apt. Because our packages lay down a temp directory for use by the service, when the services create and modify files in those temp dirs, needrestart thinks the service needs to be restarted. Because we manage restarting our services as needed, this drops a file in /etc/needrestart/conf.d that adds the service to the list of services needrestart should ignore.
@nmburgan nmburgan force-pushed the issue/main/pe-36861_needrestart branch from 2c733e0 to e43660e Compare October 12, 2023 23:16
@nmburgan
Copy link
Contributor Author

Tested this locally, building pe-puppetserver, and it appears to create a deb file that drops the file in the right place.

Copy link
Contributor

@e-gris e-gris left a comment

Choose a reason for hiding this comment

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

I'm not at all familiar with this part of ezbake but the PR looks quite sensible.

@jonathannewman jonathannewman merged commit c1d1aeb into puppetlabs:main Oct 13, 2023
4 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
Development

Successfully merging this pull request may close these issues.

3 participants