Systemd unit to use default KillSignal of SIGTERM
Since Consul 0.7, client-mode agents are shutting down gracefully by default, so no need to send them a SIGINT specially. The default for server-mode agents is still not to leave gracefully on SIGTERM, but it was left this way for a reason. To override this, it is better to set the leave_on_terminate option, rather than changing the KillSignal.
This commit is contained in:
parent
6f03545082
commit
7f2b4349f8
|
@ -8,7 +8,6 @@ EnvironmentFile=-/etc/sysconfig/consul
|
|||
Restart=on-failure
|
||||
ExecStart=/usr/local/bin/consul agent $CONSUL_FLAGS -config-dir=/etc/systemd/system/consul.d
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in New Issue