mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
Added some extra information to output in case --verbose
was given.
This commit is contained in:
parent
af80f39e37
commit
f1eefa472c
2 changed files with 55 additions and 2 deletions
38
support-files/mysqld_multi.server.sh
Normal file
38
support-files/mysqld_multi.server.sh
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# A simple startup script for mysqld_multi by Tim Smith and Jani Tolonen.
|
||||
# This script assumes that my.cnf file exists either in /etc/my.cnf or
|
||||
# /root/.my.cnf and has groups [mysqld_multi] and [mysqldN]. See the
|
||||
# mysqld_multi documentation for detailed instructions.
|
||||
#
|
||||
# This script can be used as /etc/init.d/mysql.server
|
||||
#
|
||||
|
||||
basedir=/usr/local/mysql
|
||||
bindir=/usr/local/mysql/bin
|
||||
|
||||
if test -x $bindir/mysqld_multi
|
||||
then
|
||||
mysqld_multi= "$bindir/mysqld_multi";
|
||||
else
|
||||
echo "Can't execute $bindir/mysqld_multi from dir $basedir"
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
start )
|
||||
"$mysqld_multi" start
|
||||
;;
|
||||
stop )
|
||||
"$mysqld_multi" stop
|
||||
;;
|
||||
report )
|
||||
"$mysqld_multi" report
|
||||
;;
|
||||
restart )
|
||||
"$mysqld_multi" stop
|
||||
"$mysqld_multi" start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|report|restart}" >&2
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue