Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is someone here able to start/stop/reload/... a list of units specified with a wildcard or similar method on systemctl?

I try do do somethin like: systemctl restart openstack-nova-*.services or systemctl restart openstack-nova-?.services

but it's a dead end and I didn't found anything usefull on systemctl's manual.

I could use a for loop but before that I'll have to make a systemctl -t service --failed and then grep for listed units... a little bit boring isn't ?

So, if someone know if it's possible to do something like that or not, I'll be happy to hear it.

If it's not, I think I'll push the idea on systemctl developers list or maybe do the patch if I have time to ^^

share|improve this question
What about "systemctl restart openstack-nova*.service" ? Does it work? –  dsmsk80 Sep 23 '13 at 8:39
Nop, that what I was talking about on my exemple indeed :( Thanks for your help! –  Dr I Sep 23 '13 at 8:43
What distro do you run? –  dsmsk80 Sep 23 '13 at 8:43
I'm running on Fedora 19 –  Dr I Sep 23 '13 at 10:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.