1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added possibility to use [GNR...] optional argument for

mysqld_multi via mysqld_multi.server.sh
This commit is contained in:
unknown
2004-10-09 13:57:27 +03:00
parent f1eefa472c
commit 34a30eb705

View File

@ -1,4 +1,4 @@
#! /bin/sh #!/bin/sh
# #
# A simple startup script for mysqld_multi by Tim Smith and Jani Tolonen. # 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 # This script assumes that my.cnf file exists either in /etc/my.cnf or
@ -7,30 +7,33 @@
# #
# This script can be used as /etc/init.d/mysql.server # This script can be used as /etc/init.d/mysql.server
# #
# Version 1.0
#
basedir=/usr/local/mysql basedir=/usr/local/mysql
bindir=/usr/local/mysql/bin bindir=/usr/local/mysql/bin
if test -x $bindir/mysqld_multi if test -x $bindir/mysqld_multi
then then
mysqld_multi= "$bindir/mysqld_multi"; mysqld_multi="$bindir/mysqld_multi";
else else
echo "Can't execute $bindir/mysqld_multi from dir $basedir" echo "Can't execute $bindir/mysqld_multi from dir $basedir";
exit;
fi fi
case "$1" in case "$1" in
start ) 'start' )
"$mysqld_multi" start "$mysqld_multi" start $2
;; ;;
stop ) 'stop' )
"$mysqld_multi" stop "$mysqld_multi" stop $2
;; ;;
report ) 'report' )
"$mysqld_multi" report "$mysqld_multi" report $2
;; ;;
restart ) 'restart' )
"$mysqld_multi" stop "$mysqld_multi" stop $2
"$mysqld_multi" start "$mysqld_multi" start $2
;; ;;
*) *)
echo "Usage: $0 {start|stop|report|restart}" >&2 echo "Usage: $0 {start|stop|report|restart}" >&2