fix testbench: shutdown-immediate command did not work for instance 2

This commit is contained in:
Rainer Gerhards 2017-02-02 15:32:49 +01:00
parent 29b6440958
commit 71984ef6c5

View File

@ -320,7 +320,7 @@ case $1 in
;;
'shutdown-immediate') # shut rsyslogd down without emptying the queue. $2 is the instance.
cp rsyslog$2.pid rsyslog$2.pid.save
kill `cat rsyslog.pid`
kill `cat rsyslog$2.pid`
# note: we do not wait for the actual termination!
;;
'kill-immediate') # kill rsyslog unconditionally