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
01c83f09
Commit
01c83f09
authored
Aug 30, 2013
by
Balasubramanian Kandasamy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to ignore mysqld_safe.pid
parent
52a3029d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+2
-2
No files found.
support-files/mysql.spec.sh
View file @
01c83f09
...
@@ -643,7 +643,7 @@ then
...
@@ -643,7 +643,7 @@ then
fi
fi
if
[
-z
"
$PID_FILE_PATT
"
]
if
[
-z
"
$PID_FILE_PATT
"
]
then
then
PID_FILE_PATT
=
`
ls
$mysql_datadir
/
*
.pid 2>/dev/null |
grep
-v
"mysqld_safe.pid"
`
PID_FILE_PATT
=
"
$mysql_datadir
/*.pid"
fi
fi
# Check if we can safely upgrade. An upgrade is only safe if it's from one
# Check if we can safely upgrade. An upgrade is only safe if it's from one
...
@@ -716,7 +716,7 @@ fi
...
@@ -716,7 +716,7 @@ fi
# We assume that if there is exactly one ".pid" file,
# We assume that if there is exactly one ".pid" file,
# it contains the valid PID of a running MySQL server.
# it contains the valid PID of a running MySQL server.
NR_PID_FILES
=
`
ls
$PID_FILE_PATT
2>/dev/null |
wc
-l
`
NR_PID_FILES
=
`
ls
$PID_FILE_PATT
2>/dev/null |
grep
-v
"mysqld_safe.pid"
|
wc
-l
`
case
$NR_PID_FILES
in
case
$NR_PID_FILES
in
0
)
SERVER_TO_START
=
''
;;
# No "*.pid" file == no running server
0
)
SERVER_TO_START
=
''
;;
# No "*.pid" file == no running server
1
)
SERVER_TO_START
=
'true'
;;
1
)
SERVER_TO_START
=
'true'
;;
...
...
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