[systemd-devel] Is there any way to stop services in cgroup?

Tony Seo tonyseo7 at gmail.com
Mon Jan 6 09:08:17 PST 2014


 In my case, "PartOf " is the most proper among your suggestions.
 I wonder why "PartOf=.target" didn't work when I typed systemctl command.

 Thanks.




2014/1/3 Mantas Mikulėnas <grawity at gmail.com>

> On Thu, Jan 2, 2014 at 4:02 PM, Tony Seo <tonyseo7 at gmail.com> wrote:
> > Hello.
> > I wonder that systemd has a method to stop all services in specific
> cgroup.
> > Actually, I have looked for a method to stop all services as the same
> time.
> > I have searched many manual in systemd site.
> > I couldn't find any method to stop all services which I want to stop.
>
> If you're trying to stop all instances of a service, systemd-git
> recently had wildcard support added, so `systemctl stop
> sshd@*.service` will now work.
>
> Otherwise, use a .target and BindsTo.
>
>
> --
> Mantas Mikulėnas <grawity at gmail.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140107/4bfd1df4/attachment.html>


More information about the systemd-devel mailing list