| Summary: | systemd needs something like a "completely-disable" command. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tom Horsley <horsley1953> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | johannbg, lpoetter, metherid, mschmidt, notting, plautrba, systemd-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-19 22:46:38 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Tom Horsley
2011-11-19 19:31:15 UTC
You don't want it to auto-start? Then disable the socket if that's possible, not sure if the enablement is in /lib or /etc. In any case you can 'mask' a service with systemctl. That's the hard switch-off, nothing, not even manually, the service can be started anymore. Yes. Mask sounds like exactly what I want, I just didn't spot it in the man page (I can't say that "mask" seems like any kind of name I'd expect for this command :-). Yeah, it's just a verb for making it kind of completely disappear, while it is still installed. :) Tom, are you saying that "systemctl disable pcscd.service" is not enough to disable the service for the next boot? That would be strange, because in this case the command should disable both units (*.service and *.socket) as the [Install] section uses "Also=...". $ sudo systemctl disable pcscd.service rm '/etc/systemd/system/sockets.target.wants/pcscd.socket' rm '/etc/systemd/system/multi-user.target.wants/pcscd.service' Oh, it is disabled at boot time, it is just that something (kdm maybe?) says to itself, "Oh, I better check and see if there is a smart card reader to talk to", and that causes the service to start even though it is disabled. (See the link in comment #1). As long as pcscd.socket is disabled too (and it is expected to be, see comment #4), then kdm's check should NOT result in start of the service. Kdm was just a guess. I have no idea what was making it start, all I know for sure was that I disabled it, yet I would still find it running after the system was booted. Maybe what systemd really needs is the command: "Explain to me please exactly why this thing is running". Anyway, a "yum -C erase pcsc-lite" made it stop running for good :-). |