mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
61a6f4bd96
Use RedHat-recommended /var/lib/rpm-state/mariadb/ for restart flag. This also fixes SUSE where /var/lib/rpm-state doesn't necessarily exist.
12 lines
235 B
Bash
12 lines
235 B
Bash
if [ $1 -ge 1 ]; then
|
|
# request the server restart
|
|
mkdir -p %{restart_flag_dir}
|
|
echo > %{restart_flag}
|
|
fi
|
|
|
|
if [ $1 = 0 ] ; then
|
|
if [ -x /usr/bin/systemctl ] ; then
|
|
/usr/bin/systemctl daemon-reload > /dev/null 2>&1
|
|
fi
|
|
fi
|
|
|