rsyslog/tests/mysqld-stop.sh
Rainer Gerhards c643f50338
testbench: support auto-start/-stop of mysqld
This is required to run mysql/mariadb tests inside containers.

closes https://github.com/rsyslog/rsyslog/issues/3223
2018-10-31 14:53:07 +01:00

15 lines
458 B
Bash
Executable File

#!/bin/bash
# This is not a real test, but a script to stop mysql. It is
# implemented as test so that we can stop mysql at the time we need
# it (do so via Makefile.am).
# Copyright (C) 2018 Rainer Gerhards and Adiscon GmbH
# Released under ASL 2.0
. ${srcdir:=.}/diag.sh init
if [ "$MYSQLD_STOP_CMD" == "" ]; then
exit_test
fi
printf 'stopping mysqld...\n'
eval $MYSQLD_STOP_CMD
sleep 1 # cosmetic: give mysqld a chance to emit shutdown message
exit_test