-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Systemd services broken on Debian Wheezy #10309
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
Comments
Thanks for finding this! We'll get it fixed. |
Hi @torhve. Can you elaborate on why you think that your change should be implemented? Is there a particular use case that's broken in the current implementation? Just as a cursory glance, I see that the current version outputs nearly twice as many services as does your suggested version. I just want to understand what we're doing here, as this change obviously has the potential to affect a large number of systems. :] |
That's not what I see on my system. (Debian Wheezy)
In short, there can exist services that doesn't have unit files. (Atleast that's my understanding) The error I typically get from salt is
So lets see what salt looks at:
But on the other hand:
Which means that the packagers of NTP didn't include systemd unit file, but it has a plain old init script, which systemd knows about, but not salt. I hope that clears things up. |
I see this happening as well, currently affected services are at least “apache2“ and “ssh”. Debian: 7.4 |
I can confirm that at least for ntp this is also the case for Debian sid (8.0) Salt: 2014.1.1+ds-1 |
In #11921 @mtorromeo says that this should now be fixed. Could somebody grab his patch and verify, please? Thanks! |
Looks like this issue is fixed, but if anyone sees this one pop up again with that patch applied, leave a comment and we will be happy to re-open! |
Getting this for centos7 and ntp on the latest version of salt stack. Should this work? The module is already installed, it passes the install but fails on the service setting.
|
The systemd module uses the command
systemctl --full list-unit-files | col -b
to find all services.The correct command should be
systemctl --all --full list-units --type service
The text was updated successfully, but these errors were encountered: