mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
Make systemd EnvironmentFile optional #12176
This commit is contained in:
commit
d2f36651ab
3
.changelog/12176.txt
Normal file
3
.changelog/12176.txt
Normal file
@ -0,0 +1,3 @@
|
||||
```release-note:enhancement
|
||||
systemd: Support starting/stopping the systemd service for linux packages when the optional EnvironmentFile does not exist.
|
||||
```
|
@ -6,7 +6,7 @@ After=network-online.target
|
||||
ConditionFileNotEmpty=/etc/consul.d/consul.hcl
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/consul.d/consul.env
|
||||
EnvironmentFile=-/etc/consul.d/consul.env
|
||||
User=consul
|
||||
Group=consul
|
||||
ExecStart=/usr/bin/consul agent -config-dir=/etc/consul.d/
|
||||
|
Loading…
x
Reference in New Issue
Block a user