Files
nats-server/util/gnatsd.service
Glenn Matthys 89cbb9613c Remove PIDFile and implement Reload & Stop commands
Removes PIDFile (gnatsd doesn't create a pid file) and implements the
Reload and Stop service commands
2017-09-20 21:24:51 +02:00

17 lines
287 B
Desktop File

[Unit]
Description=NATS messaging server
After=network.target
[Service]
PrivateTmp=true
Type=simple
ExecStart=/usr/sbin/gnatsd -c /etc/gnatsd.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s SIGINT $MAINPID
User=gnatsd
Group=gnatsd
[Install]
WantedBy=multi-user.target