Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
77788176
Commit
77788176
authored
Nov 29, 2000
by
tim@threads.polyesthetic.msg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More changes to mysql.server to make it fit in with the other
tools.
parent
7f877deb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
8 deletions
+32
-8
support-files/mysql.server.sh
support-files/mysql.server.sh
+32
-8
No files found.
support-files/mysql.server.sh
View file @
77788176
...
@@ -18,10 +18,9 @@
...
@@ -18,10 +18,9 @@
# in the /etc/my.cnf or other configuration files.
# in the /etc/my.cnf or other configuration files.
PATH
=
/sbin:/usr/sbin:/bin:/usr/bin
PATH
=
/sbin:/usr/sbin:/bin:/usr/bin
export
PATH
export
PATH
mode
=
$1
mode
=
$1
# start or stop
parse_arguments
()
{
parse_arguments
()
{
for
arg
do
for
arg
do
...
@@ -33,7 +32,7 @@ parse_arguments() {
...
@@ -33,7 +32,7 @@ parse_arguments() {
done
done
}
}
# Get arguments from the my.cfg file, group
[mysqld
]
# Get arguments from the my.cfg file, group
s [mysqld] and [mysql_server
]
if
test
-x
./bin/my_print_defaults
if
test
-x
./bin/my_print_defaults
then
then
print_defaults
=
"./bin/my_print_defaults"
print_defaults
=
"./bin/my_print_defaults"
...
@@ -44,7 +43,31 @@ elif test -x @bindir@/mysql_print_defaults
...
@@ -44,7 +43,31 @@ elif test -x @bindir@/mysql_print_defaults
then
then
print_defaults
=
"@bindir@/mysql_print_defaults"
print_defaults
=
"@bindir@/mysql_print_defaults"
else
else
print_defaults
=
"my_print_defaults"
# Try to find basedir in /etc/my.cnf
conf
=
/etc/my.cnf
print_defaults
=
if
test
-r
$conf
then
subpat
=
'^[^=]*basedir[^=]*=\(.*\)$'
dirs
=
`
sed
-e
"/
$subpat
/!d"
-e
's//\1/'
$conf
`
for
d
in
$dirs
do
d
=
`
echo
$d
|
sed
-e
's/[ ]//g'
`
if
test
-x
"
$d
/bin/my_print_defaults"
then
print_defaults
=
"
$d
/bin/my_print_defaults"
break
fi
if
test
-x
"
$d
/bin/mysql_print_defaults"
then
print_defaults
=
"
$d
/bin/mysql_print_defaults"
break
fi
done
fi
# Hope it's in the PATH ... but I doubt it
test
-z
"
$print_defaults
"
&&
print_defaults
=
"my_print_defaults"
fi
fi
datadir
=
@localstatedir@
datadir
=
@localstatedir@
...
@@ -61,7 +84,7 @@ else
...
@@ -61,7 +84,7 @@ else
fi
fi
if
test
-z
"
$pid_file
"
if
test
-z
"
$pid_file
"
then
then
pid_file
=
$datadir
/
mysqld
.pid
pid_file
=
$datadir
/
`
@HOSTNAME@
`
.pid
else
else
case
"
$pid_file
"
in
case
"
$pid_file
"
in
/
*
)
;;
/
*
)
;;
...
@@ -103,7 +126,8 @@ case "$mode" in
...
@@ -103,7 +126,8 @@ case "$mode" in
sleep
1
sleep
1
while
[
-s
$pid_file
-a
"
$flags
"
!=
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
]
while
[
-s
$pid_file
-a
"
$flags
"
!=
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
]
do
[
-z
"
$flags
"
]
&&
echo
"Wait for mysqld to exit
\c
"
||
echo
".
\c
"
do
[
-z
"
$flags
"
]
&&
echo
"Wait for mysqld to exit
\c
"
||
echo
".
\c
"
flags
=
a
$flags
flags
=
a
$flags
sleep
1
sleep
1
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment