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
4975d253
Commit
4975d253
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
4a7d7e79
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
support-files/rpm/server-postin.sh
support-files/rpm/server-postin.sh
+1
-3
support-files/rpm/server-posttrans.sh
support-files/rpm/server-posttrans.sh
+3
-4
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 @
4975d253
...
@@ -17,9 +17,7 @@ fi
...
@@ -17,9 +17,7 @@ fi
if
[
$1
=
1
]
;
then
if
[
$1
=
1
]
;
then
if
[
-x
/usr/bin/systemctl
]
;
then
if
[
-x
/usr/bin/systemctl
]
;
then
/usr/bin/systemctl daemon-reload
>
/dev/null 2>&1
/usr/bin/systemctl daemon-reload
>
/dev/null 2>&1
fi
elif
[
-x
/sbin/chkconfig
]
;
then
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--add
mysql
/sbin/chkconfig
--add
mysql
fi
fi
...
...
support-files/rpm/server-posttrans.sh
View file @
4975d253
if
[
-r
%
{
restart_flag
}
]
;
then
if
[
-r
%
{
restart_flag
}
]
;
then
rm
%
{
restart_flag
}
rm
%
{
restart_flag
}
# only restart the server if it was alredy running
if
[
-x
/usr/bin/systemctl
]
;
then
if
[
-x
/usr/bin/systemctl
]
;
then
/usr/bin/systemctl daemon-reload
>
/dev/null 2>&1
/usr/bin/systemctl daemon-reload
>
/dev/null 2>&1
fi
/usr/bin/systemctl try-restart mariadb.service
>
/dev/null 2>&1
elif
%
{
_sysconfdir
}
/init.d/mysql status
>
/dev/null 2>&1
;
then
# only restart the server if it was alredy running
if
%
{
_sysconfdir
}
/init.d/mysql status
>
/dev/null 2>&1
;
then
%
{
_sysconfdir
}
/init.d/mysql restart
%
{
_sysconfdir
}
/init.d/mysql restart
fi
fi
fi
fi
support-files/rpm/server-preun.sh
View file @
4975d253
if
[
$1
=
0
]
;
then
if
[
$1
=
0
]
;
then
# Stop MySQL before uninstalling it
# 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
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
%
{
_sysconfdir
}
/init.d/mysql stop
>
/dev/null
%
{
_sysconfdir
}
/init.d/mysql stop
>
/dev/null
fi
fi
# Don't start it automatically anymore
if
[
-x
/sbin/chkconfig
]
;
then
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--del
mysql
/sbin/chkconfig
--del
mysql
>
/dev/null 2>&1
fi
fi
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