diff options
Diffstat (limited to 'notmuch')
-rw-r--r-- | notmuch/.config/systemd/user/notmuch.service | 11 | ||||
-rwxr-xr-x | notmuch/install.sh | 10 |
2 files changed, 21 insertions, 0 deletions
diff --git a/notmuch/.config/systemd/user/notmuch.service b/notmuch/.config/systemd/user/notmuch.service new file mode 100644 index 0000000..fcbee89 --- /dev/null +++ b/notmuch/.config/systemd/user/notmuch.service @@ -0,0 +1,11 @@ +[Unit] +Description=Mailbox indexer service +Documentation=man:notmuch(1) +After=mbsync@.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/notmuch new + +[Install] +WantedBy=mbsync@.service diff --git a/notmuch/install.sh b/notmuch/install.sh new file mode 100755 index 0000000..12196c8 --- /dev/null +++ b/notmuch/install.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if ! command -v "notmuch" >/dev/null; then + printf "%s: notmuch not found, skipping...\n" "$0" + exit 0 +fi + +printf "%s: Installing service\n" "$0" + +systemctl --user enable --now --no-block notmuch.service |