mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
919825a3ad
mysql.service failed to load Added 'systemctl daemon-reload' command in postin and postun rpm scripts.
15 lines
369 B
Bash
15 lines
369 B
Bash
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
|
|
%{_sysconfdir}/init.d/mysql restart
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if [ $1 = 0 ] ; then
|
|
if [ -x /usr/bin/systemctl ] ; then
|
|
/usr/bin/systemctl daemon-reload > /dev/null 2>&1
|
|
fi
|
|
fi
|
|
|