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:
Glenn Matthys
2017-09-20 21:24:51 +02:00
parent 1415511cdf
commit 89cbb9613c

View File

@@ -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