summaryrefslogtreecommitdiff
path: root/support-files/mysqld_multi.server.sh
diff options
context:
space:
mode:
authorunknown <jani@a193-229-222-2.elisa-laajakaista.fi>2004-10-09 13:57:27 +0300
committerunknown <jani@a193-229-222-2.elisa-laajakaista.fi>2004-10-09 13:57:27 +0300
commit285d66d50cdd54e2c03d8f3a5dd08c247f372602 (patch)
treef471de2df60facea394527bd79214d2cacba1234 /support-files/mysqld_multi.server.sh
parent8cc0f7e605dbc2b9c7988ad8c8b007a9e3d23094 (diff)
downloadmariadb-git-285d66d50cdd54e2c03d8f3a5dd08c247f372602.tar.gz
Added possibility to use [GNR...] optional argument for
mysqld_multi via mysqld_multi.server.sh
Diffstat (limited to 'support-files/mysqld_multi.server.sh')
-rw-r--r--support-files/mysqld_multi.server.sh27
1 files changed, 15 insertions, 12 deletions
diff --git a/support-files/mysqld_multi.server.sh b/support-files/mysqld_multi.server.sh
index ca453428216..aaf3f2ebb40 100644
--- a/support-files/mysqld_multi.server.sh
+++ b/support-files/mysqld_multi.server.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/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
@@ -7,30 +7,33 @@
#
# This script can be used as /etc/init.d/mysql.server
#
+# Version 1.0
+#
basedir=/usr/local/mysql
bindir=/usr/local/mysql/bin
if test -x $bindir/mysqld_multi
then
- mysqld_multi= "$bindir/mysqld_multi";
+ mysqld_multi="$bindir/mysqld_multi";
else
- echo "Can't execute $bindir/mysqld_multi from dir $basedir"
+ echo "Can't execute $bindir/mysqld_multi from dir $basedir";
+ exit;
fi
case "$1" in
- start )
- "$mysqld_multi" start
+ 'start' )
+ "$mysqld_multi" start $2
;;
- stop )
- "$mysqld_multi" stop
+ 'stop' )
+ "$mysqld_multi" stop $2
;;
- report )
- "$mysqld_multi" report
+ 'report' )
+ "$mysqld_multi" report $2
;;
- restart )
- "$mysqld_multi" stop
- "$mysqld_multi" start
+ 'restart' )
+ "$mysqld_multi" stop $2
+ "$mysqld_multi" start $2
;;
*)
echo "Usage: $0 {start|stop|report|restart}" >&2