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

Add a socket_service definition #197

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented May 26, 2021

For systemd socket activated services it's needed to have both the .socket and .service unit defintions in place when starting the service. Prior to 97dd16f the systemctl daemon-reload took care of it, but now this must be done explicitly.

This new defined type makes it easy and reduces the burden on modules that define the unit/service pair.

I haven't tested this yet, but submitting it early so I can run CI on it and link it elsewhere.

@puppet-community-rangefinder
Copy link

systemd::socket_service is a type

that may have no external impact to Forge modules.

This module is declared in 8 of 576 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@ekohl ekohl marked this pull request as draft May 26, 2021 12:24
@ekohl
Copy link
Member Author

ekohl commented May 26, 2021

In theforeman/puppet-pulpcore#199 I'm testing if the approach works. A draft until then.

@ekohl ekohl force-pushed the socket-service-definition branch 2 times, most recently from 0805b45 to 5606850 Compare May 31, 2021 14:10
@ekohl ekohl force-pushed the socket-service-definition branch from 5606850 to a8b6d49 Compare May 31, 2021 14:23
@ekohl
Copy link
Member Author

ekohl commented May 31, 2021

This now fails on https://tickets.puppetlabs.com/browse/MODULES-11018. I'll add a workaround.

@ekohl ekohl force-pushed the socket-service-definition branch 2 times, most recently from 887c186 to e8efe7e Compare June 1, 2021 13:08
op-ct pushed a commit to op-ct/puppet-systemd that referenced this pull request Jun 17, 2022
For systemd socket activated services it's needed to have both the
.socket and .service unit defintions in place when starting the service.
Prior to 97dd16f the systemctl
daemon-reload took care of it, but now this must be done explicitly.

This new defined type makes it easy and reduces the burden on modules
that define the unit/service pair.
@ekohl
Copy link
Member Author

ekohl commented Jan 26, 2023

I've rebased this, but too tired to fix the dependency cycles now.

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.

None yet

2 participants