mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
19 lines
438 B
Desktop File
19 lines
438 B
Desktop File
[Unit]
|
|
Description=NATS Server
|
|
After=network.target ntp.service
|
|
|
|
[Service]
|
|
PrivateTmp=true
|
|
Type=simple
|
|
ExecStart=/usr/sbin/nats-server -c /etc/nats-server.conf
|
|
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
|