From 318f40edcaa550481a8ffed0aa34041d988c4dc8 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sat, 5 Oct 2024 13:26:09 -0500 Subject: fix(notmuch): add delay to allow gpg key to unlock --- notmuch/.config/systemd/user/goimapnotify.service | 1 + notmuch/.config/systemd/user/notmuch.service | 3 +++ 2 files changed, 4 insertions(+) diff --git a/notmuch/.config/systemd/user/goimapnotify.service b/notmuch/.config/systemd/user/goimapnotify.service index 6a76d4d..75d8b5f 100644 --- a/notmuch/.config/systemd/user/goimapnotify.service +++ b/notmuch/.config/systemd/user/goimapnotify.service @@ -3,6 +3,7 @@ Description=Execute scripts on IMAP mailbox changes (new/deleted/updated message [Service] Type=simple +ExecStartPre=/usr/bin/sleep 5 ExecStart=/usr/bin/goimapnotify Restart=always RestartSec=30 diff --git a/notmuch/.config/systemd/user/notmuch.service b/notmuch/.config/systemd/user/notmuch.service index 2d7f483..913c19d 100644 --- a/notmuch/.config/systemd/user/notmuch.service +++ b/notmuch/.config/systemd/user/notmuch.service @@ -6,7 +6,10 @@ After=network-online.target [Service] Type=oneshot +ExecStartPre=/usr/bin/sleep 5 ExecStart=/usr/bin/notmuch new +Restart=on-failure +RestartSec=30 [Install] WantedBy=default.target -- cgit v1.2.3-70-g09d2