27 lines
		
	
	
		
			545 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			545 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
| [Unit]
 | |
| Description=Consul Client
 | |
| Documentation=https://www.consul.io/
 | |
| Requires=network-online.target
 | |
| After=network-online.target
 | |
| ConditionFileNotEmpty=/etc/consul.d/consul.hcl
 | |
| 
 | |
| [Service]
 | |
| Type=notify
 | |
| User=consul
 | |
| Group=consul
 | |
| ExecStart=/usr/bin/consul agent -config-dir=/etc/consul.d
 | |
| ExecReload=/bin/kill -HUP $MAINPID
 | |
| KillMode=process
 | |
| Restart=on-failure
 | |
| LimitNOFILE=65536
 | |
| 
 | |
| # Security settings
 | |
| NoNewPrivileges=yes
 | |
| PrivateTmp=yes
 | |
| ProtectHome=yes
 | |
| ProtectSystem=strict
 | |
| ReadWritePaths=/opt/consul /var/log/consul
 | |
| 
 | |
| [Install]
 | |
| WantedBy=multi-user.target
 |