summaryrefslogtreecommitdiffstats
path: root/tests/killrsyslog.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/killrsyslog.sh')
-rwxr-xr-xtests/killrsyslog.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/killrsyslog.sh b/tests/killrsyslog.sh
index c9b6e0ac..aa342c1c 100755
--- a/tests/killrsyslog.sh
+++ b/tests/killrsyslog.sh
@@ -5,3 +5,9 @@ then
kill -9 `cat rsyslog.pid`
sleep 1
fi
+if [ -e "rsyslog2.pid" ]
+then
+ echo rsyslog2.pid exists, trying to shut down rsyslogd process `cat rsyslog.pid`.
+ kill -9 `cat rsyslog2.pid`
+ sleep 1
+fi