get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/util/nats-server.service (about) 1 [Unit] 2 Description=NATS Server 3 After=network-online.target ntp.service 4 5 [Service] 6 PrivateTmp=true 7 Type=simple 8 ExecStart=/usr/sbin/nats-server -c /etc/nats-server.conf 9 ExecReload=/bin/kill -s HUP $MAINPID 10 ExecStop=/bin/kill -s SIGINT $MAINPID 11 User=nats 12 Group=nats 13 # The nats-server uses SIGUSR2 to trigger using Lame Duck Mode (LDM) shutdown 14 KillSignal=SIGUSR2 15 # You might want to adjust TimeoutStopSec too. 16 17 [Install] 18 WantedBy=multi-user.target