MDEV-19432 Systemd service does not get re-enabled after upgrade
following Fedora recommendations (see %systemd_post macro in FC29) let's do `systemctl preset` on the first installation of the server
This commit is contained in:
parent
d03a59c6ff
commit
8fce180765
@ -16,7 +16,8 @@ fi
|
|||||||
# Make MySQL start/shutdown automatically when the machine does it.
|
# Make MySQL start/shutdown automatically when the machine does it.
|
||||||
if [ $1 = 1 ] ; then
|
if [ $1 = 1 ] ; then
|
||||||
if [ -x /usr/bin/systemctl ] ; then
|
if [ -x /usr/bin/systemctl ] ; then
|
||||||
/usr/bin/systemctl daemon-reload >/dev/null 2>&1
|
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
/usr/bin/systemctl preset mariadb.service >/dev/null 2>&1 || :
|
||||||
elif [ -x /sbin/chkconfig ] ; then
|
elif [ -x /sbin/chkconfig ] ; then
|
||||||
/sbin/chkconfig --add mysql
|
/sbin/chkconfig --add mysql
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user