Skip to content

Commit

Permalink
Merge systemd: use SIGUSR2 for shutdown, for LDM (#4603)
Browse files Browse the repository at this point in the history
  • Loading branch information
philpennock committed Sep 28, 2023
2 parents 783edaa + 47db17a commit 259e904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/nats-server-hardened.service
Expand Up @@ -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=
Expand Down
3 changes: 3 additions & 0 deletions util/nats-server.service
Expand Up @@ -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

0 comments on commit 259e904

Please sign in to comment.