From 5c10885f69e2879e34f76968a1100f1ad6249440 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Mon, 29 Apr 2024 16:13:38 +0200 Subject: [PATCH] Update import-email-to-piler.service to use --no-block option when starting the service --- imageroot/actions/configure-module/91import-email | 2 +- imageroot/systemd/user/import-email-to-piler.service | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imageroot/actions/configure-module/91import-email b/imageroot/actions/configure-module/91import-email index f609ee6..f9d222f 100755 --- a/imageroot/actions/configure-module/91import-email +++ b/imageroot/actions/configure-module/91import-email @@ -10,4 +10,4 @@ if [[ -f 'sync2pilerdone' ]]; then echo "## sync2pilerdone file is found, mail already migrated, exiting" exit 0 fi -systemctl --user start import-email-to-piler.service +systemctl --user start --no-block import-email-to-piler.service diff --git a/imageroot/systemd/user/import-email-to-piler.service b/imageroot/systemd/user/import-email-to-piler.service index f372191..60e3160 100644 --- a/imageroot/systemd/user/import-email-to-piler.service +++ b/imageroot/systemd/user/import-email-to-piler.service @@ -7,5 +7,5 @@ Description= import emails to piler [Service] ExecStart=/usr/local/bin/runagent import-emails -ExectStartPost=/usr/bin/touch sync2pilerdone -Type=simple +ExecStart=/usr/bin/touch sync2pilerdone +Type=oneshot