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
9e49de00
Commit
9e49de00
authored
Aug 30, 2013
by
Balasubramanian Kandasamy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to ignore mysqld_safe.pid
parent
095b6645
Changes
1
Hide 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 @
9e49de00
...
...
@@ -643,7 +643,7 @@ then
fi
if
[
-z
"
$PID_FILE_PATT
"
]
then
PID_FILE_PATT
=
`
ls
$mysql_datadir
/
*
.pid 2>/dev/null |
grep
-v
"mysqld_safe.pid"
`
PID_FILE_PATT
=
"
$mysql_datadir
/*.pid"
fi
# Check if we can safely upgrade. An upgrade is only safe if it's from one
...
...
@@ -716,7 +716,7 @@ fi
# We assume that if there is exactly one ".pid" file,
# 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
0
)
SERVER_TO_START
=
''
;;
# No "*.pid" file == no running server
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