mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-01 19:28: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
|
||||
User=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
|
||||
CapabilityBoundingSet=
|
||||
|
||||
@@ -10,6 +10,9 @@ ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s SIGINT $MAINPID
|
||||
User=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]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user