summaryrefslogtreecommitdiff
path: root/support-files/rpm/server-posttrans.sh
blob: 0d2425961854051306d762028bb74081e797e9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
    %{_sysconfdir}/init.d/mysql restart
  fi
fi