[systemd-devel] Is there any way to stop services in cgroup?
"Jóhann B. Guðmundsson"
johannbg at gmail.com
Thu Jan 2 06:42:55 PST 2014
On 01/02/2014 02:02 PM, Tony Seo 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.
> I need some advices for solving this problem.
You would create a custom target and have all services bind to that
target then you can simply run systemctl stop my-custom.target which
would stop a.service b.service c.service that are bound to that target
as opposed to having to run "systemctl stop a.service b.service c.service"
JBG
More information about the systemd-devel
mailing list