Commit d9d99408 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7368 : SLES: Failed to start mysql.service: Unit

            mysql.service failed to load

Added 'systemctl daemon-reload' command in postin and
postun rpm scripts.
parent 5900333a
# Make MySQL start/shutdown automatically when the machine does it.
if [ $1 = 1 ] ; then
if [ -x /usr/bin/systemctl ] ; then
/usr/bin/systemctl daemon-reload >/dev/null 2>&1
fi
if [ -x /sbin/chkconfig ] ; then
/sbin/chkconfig --add mysql
fi
......@@ -51,9 +55,9 @@ fi
SETARGETDIR=/etc/selinux/targeted/src/policy
SEDOMPROG=$SETARGETDIR/domains/program
SECONPROG=$SETARGETDIR/file_contexts/program
if [ -f /etc/redhat-release ] \
&& grep -q "Red Hat Enterprise Linux .. release 4" /etc/redhat-release \
|| grep -q "CentOS release 4" /etc/redhat-release ; then
if [ -f /etc/redhat-release ] ; then
if grep '\(Red Hat Enterprise Linux ..\|CentOS\) release 4' \
/etc/redhat-release >/dev/null 2>&1; then
echo
echo
echo 'Notes regarding SELinux on this platform:'
......@@ -75,6 +79,7 @@ if [ -f /etc/redhat-release ] \
echo ' make load'
echo
echo
fi
fi
if [ -x sbin/restorecon ] ; then
......
......@@ -6,3 +6,10 @@ if [ $1 -ge 1 ]; then
fi
fi
fi
if [ $1 = 0 ] ; then
if [ -x /usr/bin/systemctl ] ; then
/usr/bin/systemctl daemon-reload > /dev/null 2>&1
fi
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment