add cgroup cleanup support
This adds the ability to kill all processes within a service's cgroup when that service is stopped or restarted.
This commit is contained in:
		
				
					committed by
					
						
						William Hubbs
					
				
			
			
				
	
			
			
			
						parent
						
							e4668a5061
						
					
				
				
					commit
					c984506537
				
			@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user