summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorunknown <jani@a193-229-222-2.elisa-laajakaista.fi>2004-10-09 13:23:00 +0300
committerunknown <jani@a193-229-222-2.elisa-laajakaista.fi>2004-10-09 13:23:00 +0300
commitf1eefa472cd15691fb03f422a275a15f327528b4 (patch)
tree7c68a60a8af2b34460289645e41456e77d703d68 /support-files
parentaf80f39e3721d925a6f23169ad54b26645088eb1 (diff)
downloadmariadb-git-f1eefa472cd15691fb03f422a275a15f327528b4.tar.gz
Added some extra information to output in case --verbose
was given.
Diffstat (limited to 'support-files')
-rw-r--r--support-files/mysqld_multi.server.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/support-files/mysqld_multi.server.sh b/support-files/mysqld_multi.server.sh
new file mode 100644
index 00000000000..ca453428216
--- /dev/null
+++ b/support-files/mysqld_multi.server.sh
@@ -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