diff options
Diffstat (limited to 'support-files/rpm/server-posttrans.sh')
-rw-r--r-- | support-files/rpm/server-posttrans.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/support-files/rpm/server-posttrans.sh b/support-files/rpm/server-posttrans.sh index 0d242596185..1406c78a5f5 100644 --- a/support-files/rpm/server-posttrans.sh +++ b/support-files/rpm/server-posttrans.sh @@ -2,10 +2,9 @@ if [ -r %{restart_flag} ] ; then rm %{restart_flag} if [ -x /usr/bin/systemctl ] ; then /usr/bin/systemctl daemon-reload > /dev/null 2>&1 - fi - - # only restart the server if it was alredy running - if %{_sysconfdir}/init.d/mysql status > /dev/null 2>&1; then + /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 %{_sysconfdir}/init.d/mysql restart fi fi |