summaryrefslogtreecommitdiff
path: root/support-files/rpm/server-postun.sh
blob: 27e1125b78f63d179930697180747b74b5d3ab4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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