forked from Spark/ssm-services
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			292 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			292 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env ssm
 | |
| unset reload
 | |
| 
 | |
| service_type='oneshot'
 | |
| service_command='/usr/bin/sysctl'
 | |
| 
 | |
| pre_start() {
 | |
| 	for i in /etc/sysctl.conf /etc/sysctl.d/* /usr/lib/sysctl.d/*; do
 | |
| 		[[ -f "$i" ]] && {
 | |
| 			sysctl_config_files+=( "$i" )
 | |
| 		}
 | |
| 	done
 | |
| 
 | |
| 	service_command+=( -p "${sysctl_config_files[@]}" )
 | |
| }
 |