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
b443871e
Commit
b443871e
authored
Jan 02, 2001
by
monty@donna.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that my_print_defaults is found
parent
3db58d5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
25 deletions
+26
-25
support-files/mysql.server.sh
support-files/mysql.server.sh
+26
-25
No files found.
support-files/mysql.server.sh
View file @
b443871e
...
...
@@ -20,6 +20,27 @@
PATH
=
/sbin:/usr/sbin:/bin:/usr/bin
export
PATH
# Set some defaults
datadir
=
@localstatedir@
basedir
=
pid_file
=
if
test
-z
"
$basedir
"
then
basedir
=
@prefix@
bindir
=
@bindir@
else
bindir
=
"
$basedir
/bin"
fi
if
test
-z
"
$pid_file
"
then
pid_file
=
$datadir
/
`
@HOSTNAME@
`
.pid
else
case
"
$pid_file
"
in
/
*
)
;;
*
)
pid_file
=
"
$datadir
/
$pid_file
"
;;
esac
fi
mode
=
$1
# start or stop
parse_arguments
()
{
...
...
@@ -36,12 +57,12 @@ parse_arguments() {
if
test
-x
./bin/my_print_defaults
then
print_defaults
=
"./bin/my_print_defaults"
elif
test
-x
@bindir@
/my_print_defaults
elif
test
-x
$bindir
/my_print_defaults
then
print_defaults
=
"
@bindir@
/my_print_defaults"
elif
test
-x
@bindir@
/mysql_print_defaults
print_defaults
=
"
$bindir
/my_print_defaults"
elif
test
-x
$bindir
/mysql_print_defaults
then
print_defaults
=
"
@bindir@
/mysql_print_defaults"
print_defaults
=
"
$bindir
/mysql_print_defaults"
else
# Try to find basedir in /etc/my.cnf
conf
=
/etc/my.cnf
...
...
@@ -70,28 +91,8 @@ else
test
-z
"
$print_defaults
"
&&
print_defaults
=
"my_print_defaults"
fi
datadir
=
@localstatedir@
basedir
=
pid_file
=
parse_arguments
`
$print_defaults
$defaults
mysqld mysql_server
`
if
test
-z
"
$basedir
"
then
basedir
=
@prefix@
bindir
=
@bindir@
else
bindir
=
"
$basedir
/bin"
fi
if
test
-z
"
$pid_file
"
then
pid_file
=
$datadir
/
`
@HOSTNAME@
`
.pid
else
case
"
$pid_file
"
in
/
*
)
;;
*
)
pid_file
=
"
$datadir
/
$pid_file
"
;;
esac
fi
# Safeguard (relative paths, core dumps..)
cd
$basedir
...
...
@@ -105,7 +106,7 @@ case "$mode" in
# be overwritten at next upgrade.
$bindir
/safe_mysqld
--datadir
=
$datadir
--pid-file
=
$pid_file
&
# Make lock for RedHat / SuSE
if
test
-
d
/var/lock/subsys
if
test
-
w
/var/lock/subsys
then
touch
/var/lock/subsys/mysql
fi
...
...
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