default timeout in the config
This commit is contained in:
		
							
								
								
									
										3
									
								
								rc.conf
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								rc.conf
									
									
									
									
									
								
							| @@ -40,3 +40,6 @@ cfg_mounts=( | |||||||
| # Some temporary directories and files | # Some temporary directories and files | ||||||
| cfg_tmpdirs+=( '/run/lock' '/run/lock/lvm' '/run/lvm' '/run/user' ) | cfg_tmpdirs+=( '/run/lock' '/run/lock/lvm' '/run/lvm' '/run/user' ) | ||||||
| cfg_tmpfiles+=( '/run/utmp' ) | cfg_tmpfiles+=( '/run/utmp' ) | ||||||
|  |  | ||||||
|  | # How long do we wait for all processes to die nicely? | ||||||
|  | cfg_killall5_timeout=30 | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								rc.in
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								rc.in
									
									
									
									
									
								
							| @@ -101,7 +101,7 @@ rc.services_stop() { | |||||||
|  |  | ||||||
| rc.stop_everything() { | rc.stop_everything() { | ||||||
| 	echo "Politely asking all processes to shut down..." | 	echo "Politely asking all processes to shut down..." | ||||||
| 	killall5 -s 15 -w "${cfg_killall5_timeout:-30}" | 	killall5 -s 15 -w "$cfg_killall5_timeout" | ||||||
|  |  | ||||||
| 	echo "Killing the remaning ones..." | 	echo "Killing the remaning ones..." | ||||||
| 	killall5 -s 9 | 	killall5 -s 9 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user