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
932e29d4
Commit
932e29d4
authored
Mar 22, 2019
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't run SysV scripts in scriptlets if systemd is used
parent
bfb0726f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
support-files/rpm/server-postin.sh
support-files/rpm/server-postin.sh
+1
-3
support-files/rpm/server-postun.sh
support-files/rpm/server-postun.sh
+6
-5
support-files/rpm/server-preun.sh
support-files/rpm/server-preun.sh
+11
-7
No files found.
support-files/rpm/server-postin.sh
View file @
932e29d4
...
...
@@ -17,9 +17,7 @@ fi
if
[
$1
=
1
]
;
then
if
[
-x
/usr/bin/systemctl
]
;
then
/usr/bin/systemctl daemon-reload
>
/dev/null 2>&1
fi
if
[
-x
/sbin/chkconfig
]
;
then
elif
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--add
mysql
fi
...
...
support-files/rpm/server-postun.sh
View file @
932e29d4
if
[
$1
-ge
1
]
;
then
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
# only restart the server if it was alredy running
if
%
{
_sysconfdir
}
/init.d/mysql status
>
/dev/null 2>&1
;
then
if
[
-x
/usr/bin/systemctl
]
;
then
/usr/bin/systemctl daemon-reload
>
/dev/null 2>&1
/usr/bin/systemctl try-restart mariadb.service
>
/dev/null 2>&1
elif
%
{
_sysconfdir
}
/init.d/mysql status
>
/dev/null 2>&1
;
then
%
{
_sysconfdir
}
/init.d/mysql restart
fi
fi
fi
if
[
$1
=
0
]
;
then
...
...
support-files/rpm/server-preun.sh
View file @
932e29d4
if
[
$1
=
0
]
;
then
# Stop MySQL before uninstalling it
# Don't start it automatically anymore
if
[
-x
/usr/bin/systemctl
]
;
then
/usr/bin/systemctl stop mariadb.service
>
/dev/null 2>&1
/usr/bin/systemctl disable mariadb.service
>
/dev/null 2>&1
fi
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
%
{
_sysconfdir
}
/init.d/mysql stop
>
/dev/null
fi
# Don't start it automatically anymore
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--del
mysql
/sbin/chkconfig
--del
mysql
>
/dev/null 2>&1
fi
fi
...
...
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