mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 02:27:19 -04:00 
			
		
		
		
	Configure systemd to send SIGQUIT on stop (#1702)
This commit is contained in:
		
							parent
							
								
									f3721c103c
								
							
						
					
					
						commit
						f68233a1ba
					
				
							
								
								
									
										5
									
								
								dist/init/linux-systemd/caddy.service
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								dist/init/linux-systemd/caddy.service
									
									
									
									
										vendored
									
									
								
							| @ -20,6 +20,11 @@ Environment=CADDYPATH=/etc/ssl/caddy | |||||||
| ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp | ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp | ||||||
| ExecReload=/bin/kill -USR1 $MAINPID | ExecReload=/bin/kill -USR1 $MAINPID | ||||||
| 
 | 
 | ||||||
|  | ; Use graceful shutdown with a reasonable timeout | ||||||
|  | KillMode=mixed | ||||||
|  | KillSignal=SIGQUIT | ||||||
|  | TimeoutStopSec=5s | ||||||
|  | 
 | ||||||
| ; Limit the number of file descriptors; see `man systemd.exec` for more limit settings. | ; Limit the number of file descriptors; see `man systemd.exec` for more limit settings. | ||||||
| LimitNOFILE=1048576 | LimitNOFILE=1048576 | ||||||
| ; Unmodified caddy is not expected to use more than that. | ; Unmodified caddy is not expected to use more than that. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user