-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deb systemd should use control-group default for killmode #36806
Conversation
I am not sure we want to do this in a minor release. We have already done it in the upcoming carbon release after much discussion: #33792 |
As far as I know, we already did this for 2015.8.12 and 2016.3.3, I wasn't aware that we had different unit files in the salt repo for debian when I opened #35577 to update the unit files after adding systemd-notify support and changing systemd service restarts to use scopes to take the service restart out of the cgroup in #35510. We couldn't use the default of We absolutely should get this in, and backported to 2015.8. We also need to get the type changed to |
@l2ol33rt The Debian 8 systemd service unit files for releases 2015.8.12 and 2016.3.3 are correct, and are pulled from the pkg directory, that is, pkg/salt-minion.service. Debian 8, as are all common Linux packages released by SaltStack, is built from the state files in salt-pack, openly available on github, https://github.com/saltstack/salt-pack. If you examine the contents of tarball https://github.com/saltstack/salt-pack/blob/develop/file_roots/pkg/salt/2016_3_3/debian8/spec/salt_debian.tar.xz you will see their use, for example: debian/salt-minion.install |
Yeah it looks like these unit files are only used for git installs via salt-bootstrap. |
Given @l2ol33rt's versions-report, that's very likely how he was installing it, so this is still a good change. |
agreed, best to have all unit service files correct, no matter were they reside. Just wanted to make him aware of salt-packl |
@terminalmage correct, Im using a variation of @dmurphy18 phew, Im glad to hear that the pkgs had different but working unit files. Thanks for digging to this everyone! |
What does this PR do?
Fix deb systemd service files to not use
KillMode=process
and instead use the default (KillMode=control-group)What issues does this PR fix or reference?
#33665
The above issue includes commits to fix the
salt-master
in thedevelop
branch but Im seeing this issue on the salt-minion service in debian 8 on the2016.3
branch as well. Im assuming this affects any salt service.Previous Behavior
With a salt-* service running, issue a
systemctl stop salt-{minion, master}
. That service will hang for around a minute then systemd force kills it:On the minion:
On the master:
New Behavior
With the changes
systemctl stop salt-{minion, master}
no longer hangs and seems to correct stop.On the minion:
On the master:
Tests written?
No, manually tested against vagrant instance.
Please review Salt's Contributing Guide for best practices.
Let me know what you think,
~Rob