Bug 1288851 - Stopping services using glob patterns does not work as stated in man page
Summary: Stopping services using glob patterns does not work as stated in man page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-06 15:04 UTC by Jamie Nguyen
Modified: 2016-02-04 23:23 UTC (History)
7 users (show)

Fixed In Version: systemd-222-14.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-04 23:23:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.