From 89cbb9613c6b185550d7ffe228c8aa8bb35b4a67 Mon Sep 17 00:00:00 2001 From: Glenn Matthys Date: Wed, 20 Sep 2017 21:24:51 +0200 Subject: [PATCH] Remove PIDFile and implement Reload & Stop commands Removes PIDFile (gnatsd doesn't create a pid file) and implements the Reload and Stop service commands --- util/gnatsd.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/gnatsd.service b/util/gnatsd.service index 98018b82..259196f4 100644 --- a/util/gnatsd.service +++ b/util/gnatsd.service @@ -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