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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d775ecdd
Commit
d775ecdd
authored
Oct 28, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8543 mysql.server script not correctly handle --pid-file.
parent
d88aaaa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
support-files/mysql.server.sh
support-files/mysql.server.sh
+4
-9
No files found.
support-files/mysql.server.sh
View file @
d775ecdd
...
@@ -114,12 +114,6 @@ mode=$1 # start or stop
...
@@ -114,12 +114,6 @@ mode=$1 # start or stop
[
$#
-ge
1
]
&&
shift
[
$#
-ge
1
]
&&
shift
other_args
=
"
$*
"
# uncommon, but needed when called from an RPM upgrade action
# Expected: "--skip-networking --skip-grant-tables"
# They are not checked here, intentionally, as it is the resposibility
# of the "spec" file author to give correct arguments only.
case
`
echo
"testing
\c
"
`
,
`
echo
-n
testing
`
in
case
`
echo
"testing
\c
"
`
,
`
echo
-n
testing
`
in
*
c
*
,-n
*
)
echo_n
=
echo_c
=
;;
*
c
*
,-n
*
)
echo_n
=
echo_c
=
;;
*
c
*
,
*
)
echo_n
=
-n
echo_c
=
;;
*
c
*
,
*
)
echo_n
=
-n
echo_c
=
;;
...
@@ -211,6 +205,7 @@ else
...
@@ -211,6 +205,7 @@ else
fi
fi
parse_server_arguments
`
$print_defaults
$extra_args
mysqld server mysql_server mysql.server
`
parse_server_arguments
`
$print_defaults
$extra_args
mysqld server mysql_server mysql.server
`
parse_server_arguments
"
$@
"
# wait for the pid file to disappear
# wait for the pid file to disappear
wait_for_gone
()
{
wait_for_gone
()
{
...
@@ -308,7 +303,7 @@ case "$mode" in
...
@@ -308,7 +303,7 @@ case "$mode" in
then
then
# Give extra arguments to mysqld with the my.cnf file. This script
# Give extra arguments to mysqld with the my.cnf file. This script
# may be overwritten at next upgrade.
# may be overwritten at next upgrade.
$bindir
/mysqld_safe
--datadir
=
"
$datadir
"
--pid-file
=
"
$mysqld_pid_file_path
"
$other_args
>
/dev/null 2>&1 &
$bindir
/mysqld_safe
--datadir
=
"
$datadir
"
--pid-file
=
"
$mysqld_pid_file_path
"
"
$@
"
>
/dev/null 2>&1 &
wait_for_ready
;
return_value
=
$?
wait_for_ready
;
return_value
=
$?
# Make lock for RedHat / SuSE
# Make lock for RedHat / SuSE
...
@@ -356,8 +351,8 @@ case "$mode" in
...
@@ -356,8 +351,8 @@ case "$mode" in
'restart'
)
'restart'
)
# Stop the service and regardless of whether it was
# Stop the service and regardless of whether it was
# running or not, start it again.
# running or not, start it again.
if
$0
stop
$other_args
;
then
if
$0
stop
"
$@
"
;
then
$0
start
$other_args
$0
start
"
$@
"
else
else
log_failure_msg
"Failed to stop running server, so refusing to try to start."
log_failure_msg
"Failed to stop running server, so refusing to try to start."
exit
1
exit
1
...
...
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