diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-05-25 21:08:26 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-05-25 21:08:26 +0200 |
commit | 108265bd9e17f19a6bcae7a68d6e1b63dc349783 (patch) | |
tree | e751f55b442468048bc2028449a6b82aad355b70 /support-files/rpm/server-postun.sh | |
parent | be0d1179a87298a6ffc02e55a12e8e3a38d1e3c8 (diff) | |
download | mariadb-git-108265bd9e17f19a6bcae7a68d6e1b63dc349783.tar.gz |
MDEV-295 Do NOT start mysql when installing MariaDB rpms
but restart it on upgrade, if it was already running
Diffstat (limited to 'support-files/rpm/server-postun.sh')
-rw-r--r-- | support-files/rpm/server-postun.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/support-files/rpm/server-postun.sh b/support-files/rpm/server-postun.sh new file mode 100644 index 00000000000..652d59154ae --- /dev/null +++ b/support-files/rpm/server-postun.sh @@ -0,0 +1,7 @@ +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 |