From c0e20137ee85d0386709db8cf650b265c7395a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 4 Feb 2020 09:39:23 +0200 Subject: [PATCH] MXS-2871: Fix postrm script The script used the wrong command to stop the service. Added the missing disable that mirrors the enable in the postinst script. --- etc/postrm.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/postrm.in b/etc/postrm.in index 5e477037e..a11ffb66d 100755 --- a/etc/postrm.in +++ b/etc/postrm.in @@ -17,11 +17,13 @@ then if [ -f /usr/lib/systemd/system/maxscale.service ] then - systemd stop maxscale.service + systemctl stop maxscale.service + systemctl disable maxscale.service rm /usr/lib/systemd/system/maxscale.service elif [ -f /lib/systemd/system/maxscale.service ] then - systemd stop maxscale.service + systemctl stop maxscale.service + systemctl disable maxscale.service rm /lib/systemd/system/maxscale.service fi