mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
10 lines
382 B
Bash
10 lines
382 B
Bash
if [ -r %{restart_flag} ] ; then
|
|
rm %{restart_flag}
|
|
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
|
|
# only restart the server if it was alredy running
|
|
%{_sysconfdir}/init.d/mysql restart
|
|
fi
|
|
fi
|