Bug 1288851

Summary: Stopping services using glob patterns does not work as stated in man page
Product: [Fedora] Fedora Reporter: Jamie Nguyen <jamielinux>
Component: systemdAssignee: Jan Synacek <jsynacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: johannbg, jsynacek, lnykryn, msekleta, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-222-14.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-04 23:23:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jamie Nguyen 2015-12-06 15:04:05 UTC
systemd-222-8.fc23

`systemctl stop foo@*.service` does not work as stated in the man page:

man 1 systemctl
> systemctl stop sshd@*.service
> will stop all sshd@.service instances

Only "foo@*" works, not "foo@*.service". A user most likely expects both of these incantations to work.


Steps to reproduce
------------------

Start a service with an instance string:

  # systemctl start openvpn
  # systemctl show --property=ActiveState openvpn
  ActiveState=active

Nothing happens when using "foo@*.service":

  # systemctl stop openvpn@*.service
  # systemctl show --property=ActiveState openvpn
  ActiveState=active

The service is stopped when using "foo@*":

  # systemctl stop openvpn@*
  # systemctl show --property=ActiveState openvpn
  ActiveState=inactive

Comment 1 Jan Synacek 2015-12-08 13:19:17 UTC
This doesn't work even with the latest upstream version.

Comment 2 Jan Synacek 2015-12-09 11:47:39 UTC
https://github.com/systemd/systemd/pull/2127

Comment 4 Fedora Update System 2016-02-01 14:51:40 UTC
systemd-222-14.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d3fc0f9415

Comment 5 Fedora Update System 2016-02-02 02:26:53 UTC
systemd-222-14.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d3fc0f9415

Comment 6 Fedora Update System 2016-02-04 23:23:13 UTC
systemd-222-14.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.