mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 00:04:33 +01:00
8 lines
233 B
Bash
8 lines
233 B
Bash
|
if [ $1 -ge 1 ]; then
|
||
|
if [ -x %{_sysconfdir}/init.d/mysql ] ; then
|
||
|
# only restart the server if it was alredy running
|
||
|
%{_sysconfdir}/init.d/mysql status > /dev/null 2>&1 && \
|
||
|
%{_sysconfdir}/init.d/mysql restart
|
||
|
fi
|
||
|
fi
|