<div dir="ltr"><div><br></div><div> In my case, "PartOf " is the most proper among your suggestions.</div><div> I wonder why "PartOf=.target" didn't work when I typed systemctl command.</div><div><br>
</div><div> Thanks.</div><div> </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/3 Mantas Mikulėnas <span dir="ltr"><<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Jan 2, 2014 at 4:02 PM, Tony Seo <<a href="mailto:tonyseo7@gmail.com">tonyseo7@gmail.com</a>> wrote:<br>
> Hello.<br>
> I wonder that systemd has a method to stop all services in specific cgroup.<br>
> Actually, I have looked for a method to stop all services as the same time.<br>
> I have searched many manual in systemd site.<br>
> I couldn't find any method to stop all services which I want to stop.<br>
<br>
</div>If you're trying to stop all instances of a service, systemd-git<br>
recently had wildcard support added, so `systemctl stop<br>
sshd@*.service` will now work.<br>
<br>
Otherwise, use a .target and BindsTo.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>><br>
</font></span></blockquote></div><br></div>