aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-10-05 13:26:09 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-10-05 13:26:09 -0500
commit318f40edcaa550481a8ffed0aa34041d988c4dc8 (patch)
tree907b5c0a5142dcb3a8feaac4375bac3d4fcbc5ae
parent49af7de8ce8d83bd0d8766cb91bd83f4117cb340 (diff)
fix(notmuch): add delay to allow gpg key to unlock
-rw-r--r--notmuch/.config/systemd/user/goimapnotify.service1
-rw-r--r--notmuch/.config/systemd/user/notmuch.service3
2 files changed, 4 insertions, 0 deletions
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