From c1f63e40d132a480eba527226061dd333f631d43 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Fri, 26 Apr 2024 12:12:02 +0200 Subject: [PATCH] Update import-email-to-piler and piler-app services --- imageroot/systemd/user/import-email-to-piler.service | 1 + imageroot/systemd/user/piler-app.service | 1 + 2 files changed, 2 insertions(+) diff --git a/imageroot/systemd/user/import-email-to-piler.service b/imageroot/systemd/user/import-email-to-piler.service index c1e6a3f..99bc571 100644 --- a/imageroot/systemd/user/import-email-to-piler.service +++ b/imageroot/systemd/user/import-email-to-piler.service @@ -6,6 +6,7 @@ Description= import emails to piler BindsTo=piler.service After=piler-app.service + ConditionPathExists=!%S/state/sync2pilerdone ExecCondition=/bin/sh -c '[ -n "$MAIL_SERVER" ]' [Service] diff --git a/imageroot/systemd/user/piler-app.service b/imageroot/systemd/user/piler-app.service index 4299a4f..9ba50a2 100644 --- a/imageroot/systemd/user/piler-app.service +++ b/imageroot/systemd/user/piler-app.service @@ -7,6 +7,7 @@ Description=Podman piler-app.service BindsTo=piler.service After=piler.service mariadb-app.service memcached-app.service +Before=import-email-to-piler.service [Service] Environment=PODMAN_SYSTEMD_UNIT=%n