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
ebc5c216
Commit
ebc5c216
authored
Mar 31, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/cps/mysql/trees/mysql-4.1
parents
fc55b08f
2aa07619
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
support-files/mysql.server.sh
support-files/mysql.server.sh
+14
-3
No files found.
support-files/mysql.server.sh
View file @
ebc5c216
...
...
@@ -90,7 +90,18 @@ wait_for_pid () {
i
=
0
while
test
$i
-lt
35
;
do
sleep
1
test
-s
$pid_file
&&
i
=
''
&&
break
case
"
$1
"
in
'created'
)
test
-s
$pid_file
&&
i
=
''
&&
break
;;
'removed'
)
test
!
-s
$pid_file
&&
i
=
''
&&
break
;;
*
)
echo
"wait_for_pid () usage: wait_for_pid created|removed"
exit
1
;;
esac
echo
$echo_n
".
$echo_c
"
i
=
`
expr
$i
+ 1
`
done
...
...
@@ -180,7 +191,7 @@ case "$mode" in
# be overwritten at next upgrade.
echo
$echo_n
"Starting MySQL"
$bindir
/mysqld_safe
--datadir
=
$datadir
--pid-file
=
$pid_file
>
/dev/null 2>&1 &
wait_for_pid
wait_for_pid
created
# Make lock for RedHat / SuSE
if
test
-w
/var/lock/subsys
...
...
@@ -201,7 +212,7 @@ case "$mode" in
echo
$echo_n
"Shutting down MySQL"
kill
$mysqld_pid
# mysqld should remove the pid_file when it exits, so wait for it.
wait_for_pid
wait_for_pid
removed
# delete lock for RedHat / SuSE
if
test
-f
/var/lock/subsys/mysql
...
...
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