summaryrefslogtreecommitdiffstats
path: root/extras/systemd/glustereventsd.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'extras/systemd/glustereventsd.service.in')
-rw-r--r--extras/systemd/glustereventsd.service.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/systemd/glustereventsd.service.in b/extras/systemd/glustereventsd.service.in
index 75cca16128f..4bfcf42f386 100644
--- a/extras/systemd/glustereventsd.service.in
+++ b/extras/systemd/glustereventsd.service.in
@@ -5,9 +5,10 @@ After=syslog.target network.target
[Service]
Environment=PYTHONPATH=@BUILD_PYTHON_SITE_PACKAGES_EXPANDED@:$PYTHONPATH
Type=simple
-ExecStart=@SBIN_DIR@/glustereventsd
+ExecStart=@SBIN_DIR@/glustereventsd --pid-file @localstatedir@/run/glustereventsd.pid
ExecReload=/bin/kill -SIGUSR2 $MAINPID
KillMode=control-group
+PIDFile=@localstatedir@/run/glustereventsd.pid
[Install]
WantedBy=multi-user.target