Don't kill service if envfile isn't present
This commit is contained in:
parent
5447e0ecb2
commit
bc776aa258
|
@ -6,7 +6,7 @@ After=network-online.target
|
||||||
ConditionFileNotEmpty=/etc/consul.d/consul.hcl
|
ConditionFileNotEmpty=/etc/consul.d/consul.hcl
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/consul.d/consul.env
|
EnvironmentFile=-/etc/consul.d/consul.env
|
||||||
User=consul
|
User=consul
|
||||||
Group=consul
|
Group=consul
|
||||||
ExecStart=/usr/bin/consul agent -config-dir=/etc/consul.d/
|
ExecStart=/usr/bin/consul agent -config-dir=/etc/consul.d/
|
||||||
|
|
Loading…
Reference in New Issue