From c984506537fbb8a3adefd2d57dd4dc831eeb79c3 Mon Sep 17 00:00:00 2001 From: Alexander Vershilov Date: Tue, 16 Apr 2013 09:52:33 +0400 Subject: add cgroup cleanup support This adds the ability to kill all processes within a service's cgroup when that service is stopped or restarted. --- etc/rc.conf.Linux | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'etc') diff --git a/etc/rc.conf.Linux b/etc/rc.conf.Linux index 4fb48ae9..79bd9713 100644 --- a/etc/rc.conf.Linux +++ b/etc/rc.conf.Linux @@ -66,3 +66,13 @@ rc_tty_number=12 # Set the net_prio controller settings for this service. #rc_cgroup_net_prio="" + +# Set this to YES if yu want all of the processes in a service's cgroup +# killed when the service is stopped or restarted. +# This should not be set globally because it kills all of the service's +# child processes, and most of the time this is undesirable. Please set +# it in /etc/conf.d/. +# To perform this cleanup manually for a stopped service, you can +# execute cgroup_cleanup with /etc/init.d/ cgroup_cleanup or +# rc-service cgroup_cleanup. +# rc_cgroup_cleanup="NO" -- cgit v1.2.3