From 0c989c7b3cbdedc8a3fdd3f58794c70df81e15b0 Mon Sep 17 00:00:00 2001 From: Palash Gandhi Date: Mon, 18 Sep 2023 16:58:38 -0700 Subject: [PATCH] DLPX-84565 telegraf.service restarts after upgrade when it should be masked PR URL: https://www.github.com/delphix/appliance-build/pull/739 --- upgrade/upgrade-scripts/common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upgrade/upgrade-scripts/common.sh b/upgrade/upgrade-scripts/common.sh index c52058eb..12b2c2d0 100644 --- a/upgrade/upgrade-scripts/common.sh +++ b/upgrade/upgrade-scripts/common.sh @@ -381,7 +381,7 @@ function mask_service() { chroot "/var/lib/machines/$container" systemctl mask "$svc" || die "failed to mask '$svc' in container '$container'" else - systemctl mask "$svc" || die "failed to mask '$svc'" + systemctl mask --now "$svc" || die "failed to mask '$svc'" fi } @@ -483,5 +483,6 @@ function fix_and_migrate_services() { snmpd.service systemd-timesyncd.service td-agent.service + telegraf.service EOF }