diff --git a/salt/profile/postfix/files/etc/systemd/system/postfix-queue-size-metrics.timer.j2 b/salt/profile/postfix/files/etc/systemd/system/postfix-queue-size-metrics.timer.j2 index beeb531..38b8903 100644 --- a/salt/profile/postfix/files/etc/systemd/system/postfix-queue-size-metrics.timer.j2 +++ b/salt/profile/postfix/files/etc/systemd/system/postfix-queue-size-metrics.timer.j2 @@ -1,6 +1,7 @@ {{ pillar['managed_by_salt'] }} [Unit] +After=postfix.service BindsTo=postfix.service [Timer] @@ -8,4 +9,4 @@ OnCalendar=*:0/5 AccuracySec=1us [Install] -WantedBy=timers.target +WantedBy=postfix.service