mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 02:30:40 -07:00
Remove PIDFile and implement Reload & Stop commands
Removes PIDFile (gnatsd doesn't create a pid file) and implements the Reload and Stop service commands
This commit is contained in:
@@ -5,8 +5,9 @@ After=network.target
|
||||
[Service]
|
||||
PrivateTmp=true
|
||||
Type=simple
|
||||
PIDFile=/var/run/gnatsd/%i.pid
|
||||
ExecStart=/usr/sbin/gnatsd -c /etc/gnatsd.conf
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s SIGINT $MAINPID
|
||||
User=gnatsd
|
||||
Group=gnatsd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user