mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-13 04:50:41 +01:00
This is required to run mysql/mariadb tests inside containers. closes https://github.com/rsyslog/rsyslog/issues/3223
15 lines
458 B
Bash
Executable File
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
|