From 31f9623ef70473539c9598ff4d2aca1fa0a0408f Mon Sep 17 00:00:00 2001
From: Michael Schroeder <mls@suse.de>
Date: Mon, 27 Apr 2020 17:36:07 +0200
Subject: [PATCH] [backend] ping when exiting/restarting the redis services

---
 src/backend/bs_notifyforward | 2 +-
 src/backend/bs_redis         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/bs_notifyforward b/src/backend/bs_notifyforward
index 75e42a5c138..bb155777b03 100755
--- a/src/backend/bs_notifyforward
+++ b/src/backend/bs_notifyforward
@@ -248,7 +248,7 @@ BSUtil::drop_privs_to($BSConfig::bsuser, $BSConfig::bsgroup);
 
 $| = 1;
 $SIG{'PIPE'} = 'IGNORE';
-BSUtil::restartexit($options, 'notifyforward', "$rundir/bs_notifyforward");
+BSUtil::restartexit($options, 'notifyforward', "$rundir/bs_notifyforward", "$myeventdir/.ping");
 BSUtil::printlog("starting build service notifyforward");
 
 mkdir_p($rundir);
diff --git a/src/backend/bs_redis b/src/backend/bs_redis
index cbbd05880ce..acb8eed2835 100755
--- a/src/backend/bs_redis
+++ b/src/backend/bs_redis
@@ -224,7 +224,7 @@ BSUtil::drop_privs_to($BSConfig::bsuser, $BSConfig::bsgroup);
 
 $| = 1;
 $SIG{'PIPE'} = 'IGNORE';
-BSUtil::restartexit($options, 'redis', "$rundir/bs_redis");
+BSUtil::restartexit($options, 'redis', "$rundir/bs_redis", "$myeventdir/.ping");
 BSUtil::printlog("starting build service redis forwarder");
 
 mkdir_p($rundir);
