diff options
Diffstat (limited to 'notmuch/.config/systemd/user')
-rw-r--r-- | notmuch/.config/systemd/user/goimapnotify.service | 1 | ||||
-rw-r--r-- | notmuch/.config/systemd/user/notmuch.service | 3 |
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 |