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
ec82cbb2
Commit
ec82cbb2
authored
Mar 10, 2010
by
Mats Kindahl
Browse files
Options
Browse Files
Download
Plain Diff
Merging with mysql-next-mr-bugfixing
parents
f6660539
5c8d6c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+7
-1
No files found.
scripts/mysqld_safe.sh
View file @
ec82cbb2
...
@@ -54,6 +54,8 @@ Usage: $0 [OPTIONS]
...
@@ -54,6 +54,8 @@ Usage: $0 [OPTIONS]
--mysqld=FILE Use the specified file as mysqld
--mysqld=FILE Use the specified file as mysqld
--mysqld-version=VERSION Use "mysqld-VERSION" as mysqld
--mysqld-version=VERSION Use "mysqld-VERSION" as mysqld
--nice=NICE Set the scheduling priority of mysqld
--nice=NICE Set the scheduling priority of mysqld
--plugin-dir=DIR Plugins are under DIR or DIR/VERSION, if
VERSION is given
--skip-kill-mysqld Don't try to kill stray mysqld processes
--skip-kill-mysqld Don't try to kill stray mysqld processes
--syslog Log messages to syslog with 'logger'
--syslog Log messages to syslog with 'logger'
--skip-syslog Log messages to error log (default)
--skip-syslog Log messages to error log (default)
...
@@ -172,6 +174,7 @@ parse_arguments() {
...
@@ -172,6 +174,7 @@ parse_arguments() {
--basedir
=
*
)
MY_BASEDIR_VERSION
=
"
$val
"
;;
--basedir
=
*
)
MY_BASEDIR_VERSION
=
"
$val
"
;;
--datadir
=
*
)
DATADIR
=
"
$val
"
;;
--datadir
=
*
)
DATADIR
=
"
$val
"
;;
--pid-file
=
*
)
pid_file
=
"
$val
"
;;
--pid-file
=
*
)
pid_file
=
"
$val
"
;;
--plugin-dir
=
*
)
PLUGIN_DIR
=
"
$val
"
;;
--user
=
*
)
user
=
"
$val
"
;
SET_USER
=
1
;;
--user
=
*
)
user
=
"
$val
"
;
SET_USER
=
1
;;
# these might have been set in a [mysqld_safe] section of my.cnf
# these might have been set in a [mysqld_safe] section of my.cnf
...
@@ -189,6 +192,7 @@ parse_arguments() {
...
@@ -189,6 +192,7 @@ parse_arguments() {
if
test
-n
"
$val
"
if
test
-n
"
$val
"
then
then
MYSQLD
=
"mysqld-
$val
"
MYSQLD
=
"mysqld-
$val
"
PLUGIN_VARIANT
=
"/
$val
"
else
else
MYSQLD
=
"mysqld"
MYSQLD
=
"mysqld"
fi
fi
...
@@ -695,8 +699,10 @@ fi
...
@@ -695,8 +699,10 @@ fi
cmd
=
"
`
mysqld_ld_preload_text
`
$NOHUP_NICENESS
"
cmd
=
"
`
mysqld_ld_preload_text
`
$NOHUP_NICENESS
"
plugin_dir
=
"
${
PLUGIN_DIR
:-
@PLUGINDIR@
}${
PLUGIN_VARIANT
}
"
for
i
in
"
$ledir
/
$MYSQLD
"
"
$defaults
"
"--basedir=
$MY_BASEDIR_VERSION
"
\
for
i
in
"
$ledir
/
$MYSQLD
"
"
$defaults
"
"--basedir=
$MY_BASEDIR_VERSION
"
\
"--datadir=
$DATADIR
"
"
$USER_OPTION
"
"--datadir=
$DATADIR
"
"
--plugin-dir=
$plugin_dir
"
"
$USER_OPTION
"
do
do
cmd
=
"
$cmd
"
`
shell_quote_string
"
$i
"
`
cmd
=
"
$cmd
"
`
shell_quote_string
"
$i
"
`
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