Hide Forgot
Description of problem: systemctl stop <service> doesn't kill daemons started from cmdline. This is probably a feature in systemd. Logging this as a bug to see if this can be documented, since this is a change in behaviour from RHEL6. Version-Release number of selected component (if applicable): systemd-207-2.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. sssd -d 9 -f -c /tmp/sssd.conf 2. # systemctl stop sssd.service # ps ax | grep sssd 18140 ? Ss 0:00 sssd -d 9 -f -c /tmp/sssd.conf 18141 ? S 0:00 /usr/libexec/sssd/sssd_be --domain LDAPTEST -d 0x77f0 --debug-to-files 18142 ? S 0:00 /usr/libexec/sssd/sssd_nss -d 0x77f0 --debug-to-files 18143 ? S 0:00 /usr/libexec/sssd/sssd_pam -d 0x77f0 --debug-to-files 3. # systemctl restart sssd.service # ps ax | grep sssd 18140 ? Ss 0:00 sssd -d 9 -f -c /tmp/sssd.conf 18141 ? S 0:00 /usr/libexec/sssd/sssd_be --domain LDAPTEST -d 0x77f0 --debug-to-files 18142 ? S 0:00 /usr/libexec/sssd/sssd_nss -d 0x77f0 --debug-to-files 18143 ? S 0:00 /usr/libexec/sssd/sssd_pam -d 0x77f0 --debug-to-files 18333 ? Ss 0:00 /usr/sbin/sssd -D -f 18334 ? S 0:00 /usr/libexec/sssd/sssd_be --domain LDAPTEST --debug-to-files 18335 ? S 0:00 /usr/libexec/sssd/sssd_nss --debug-to-files 18336 ? S 0:00 /usr/libexec/sssd/sssd_pam --debug-to-files Actual results: Expected results: Additional info:
Daemons forked off from a user's shell (and hence running in the user's session cgroup) are not "services" as such. See also bug 1021565, bug 990039.
Maybe this could be mentioned in documentation in differences between service in rhel6 and systemctl in rhel7. (But please note that service in rhel7 is just calling systemctl)
Thank you, I will document this in the chapter about systemd.