mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
systemd: use SIGUSR2 for shutdown, for LDM
This commit is contained in:
@@ -9,6 +9,9 @@ ExecReload=/bin/kill -s HUP $MAINPID
|
|||||||
ExecStop=/bin/kill -s SIGINT $MAINPID
|
ExecStop=/bin/kill -s SIGINT $MAINPID
|
||||||
User=nats
|
User=nats
|
||||||
Group=nats
|
Group=nats
|
||||||
|
# The nats-server uses SIGUSR2 to trigger using Lame Duck Mode (LDM) shutdown
|
||||||
|
KillSignal=SIGUSR2
|
||||||
|
# You might want to adjust TimeoutStopSec too.
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
CapabilityBoundingSet=
|
CapabilityBoundingSet=
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ ExecReload=/bin/kill -s HUP $MAINPID
|
|||||||
ExecStop=/bin/kill -s SIGINT $MAINPID
|
ExecStop=/bin/kill -s SIGINT $MAINPID
|
||||||
User=nats
|
User=nats
|
||||||
Group=nats
|
Group=nats
|
||||||
|
# The nats-server uses SIGUSR2 to trigger using Lame Duck Mode (LDM) shutdown
|
||||||
|
KillSignal=SIGUSR2
|
||||||
|
# You might want to adjust TimeoutStopSec too.
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user