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
7c1807a0
Commit
7c1807a0
authored
Jun 19, 2020
by
Otto Kekäläinen
Committed by
Daniel Black
Jul 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deb: On upgrades, stop both mysqld and mariadbd for backwards compat
parent
b8031e36
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
debian/mariadb-server-10.5.postrm
debian/mariadb-server-10.5.postrm
+3
-0
debian/mariadb-server-10.5.preinst
debian/mariadb-server-10.5.preinst
+3
-0
No files found.
debian/mariadb-server-10.5.postrm
View file @
7c1807a0
...
@@ -18,9 +18,12 @@ stop_server() {
...
@@ -18,9 +18,12 @@ stop_server() {
# Return immediately if there are no mysql processes running
# Return immediately if there are no mysql processes running
# as there is no point in trying to shutdown in that case.
# as there is no point in trying to shutdown in that case.
if
!
pgrep
-x
mariadbd
>
/dev/null
;
then return
;
fi
if
!
pgrep
-x
mariadbd
>
/dev/null
;
then return
;
fi
# Compatibility with versions that ran 'mysqld'
if
!
pgrep
-x
mysqld
>
/dev/null
;
then return
;
fi
set
+e
set
+e
invoke-rc.d mariadb stop
invoke-rc.d mariadb stop
invoke-rc.d mysql stop
# Backwards compatibility
errno
=
$?
errno
=
$?
set
-e
set
-e
...
...
debian/mariadb-server-10.5.preinst
View file @
7c1807a0
...
@@ -31,9 +31,12 @@ stop_server() {
...
@@ -31,9 +31,12 @@ stop_server() {
# Return immediately if there are no mysql processes running
# Return immediately if there are no mysql processes running
# as there is no point in trying to shutdown in that case.
# as there is no point in trying to shutdown in that case.
if
!
pgrep
-x
--ns
$$
mariadbd
>
/dev/null
;
then return
;
fi
if
!
pgrep
-x
--ns
$$
mariadbd
>
/dev/null
;
then return
;
fi
# Compatibility with versions that ran 'mysqld'
if
!
pgrep
-x
--ns
$$
mysqld
>
/dev/null
;
then return
;
fi
set
+e
set
+e
invoke-rc.d mariadb stop
invoke-rc.d mariadb stop
invoke-rc.d mysql stop
# Backwards compatibility
errno
=
$?
errno
=
$?
set
-e
set
-e
...
...
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