MXS-2758: Enable MaxScale after installation

This commit is contained in:
Markus Mäkelä
2020-01-10 09:44:20 +02:00
parent 6e8318f72f
commit c18cbb7a6d

View File

@ -54,6 +54,8 @@ then
mkdir -p /usr/lib/systemd/system/maxscale.service.d mkdir -p /usr/lib/systemd/system/maxscale.service.d
systemctl daemon-reload systemctl daemon-reload
fi fi
systemctl enable maxscale.service
else else
if [ -d "/etc/init/" ] && [ -f "@CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/upstart/maxscale.conf" ] if [ -d "/etc/init/" ] && [ -f "@CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/upstart/maxscale.conf" ]
then then