summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAlexander Vershilov <alexander.vershilov@gmail.com>2013-04-16 09:52:33 +0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-04-25 16:59:19 -0500
commitc984506537fbb8a3adefd2d57dd4dc831eeb79c3 (patch)
tree8921f1c4bb8d08cb428d0fc106b75986c2eae92b /etc
parente4668a5061de4f225d4e9d534ff6212e634e45d2 (diff)
downloadopenrc-c984506537fbb8a3adefd2d57dd4dc831eeb79c3.tar.gz
openrc-c984506537fbb8a3adefd2d57dd4dc831eeb79c3.tar.bz2
openrc-c984506537fbb8a3adefd2d57dd4dc831eeb79c3.tar.xz
add cgroup cleanup support
This adds the ability to kill all processes within a service's cgroup when that service is stopped or restarted.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.conf.Linux10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/rc.conf.Linux b/etc/rc.conf.Linux
index 4fb48ae..79bd971 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/<service>.
+# To perform this cleanup manually for a stopped service, you can
+# execute cgroup_cleanup with /etc/init.d/<service> cgroup_cleanup or
+# rc-service <service> cgroup_cleanup.
+# rc_cgroup_cleanup="NO"