diff options
Diffstat (limited to 'mbsync')
-rw-r--r-- | mbsync/.config/systemd/user/maildir-notify@.service | 3 | ||||
-rw-r--r-- | mbsync/.config/systemd/user/mbsync@.service | 3 | ||||
-rwxr-xr-x | mbsync/install.sh | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/mbsync/.config/systemd/user/maildir-notify@.service b/mbsync/.config/systemd/user/maildir-notify@.service index a6b87b5..6d2d3e0 100644 --- a/mbsync/.config/systemd/user/maildir-notify@.service +++ b/mbsync/.config/systemd/user/maildir-notify@.service @@ -5,3 +5,6 @@ Description=Notify on new mail in MailDir %i Type=simple ExecStart=%h/.local/bin/maildir-notify ${XDG_DATA_HOME}/mail/%i/INBOX RestartSec=10 + +[Install] +WantedBy=default.target diff --git a/mbsync/.config/systemd/user/mbsync@.service b/mbsync/.config/systemd/user/mbsync@.service index 86a51f2..f0476b3 100644 --- a/mbsync/.config/systemd/user/mbsync@.service +++ b/mbsync/.config/systemd/user/mbsync@.service @@ -1,9 +1,8 @@ [Unit] Description=Mailbox synchronization service Documentation=man:mbsync(1) -Wants=network-online.target maildir-notify@%i.service +Wants=network-online.target After=network-online.target network.target -Before=maildir-notify@%i.service [Service] Type=oneshot diff --git a/mbsync/install.sh b/mbsync/install.sh index 0f295a0..79e0fd5 100755 --- a/mbsync/install.sh +++ b/mbsync/install.sh @@ -10,5 +10,6 @@ fi printf "%s: Installing services\n" "$0" for instance in gmail porkbun; do - systemctl --user enable --now --no-block $pkgname@"$instance".service + systemctl --user enable --now --no-block mbsync@"$instance".service + systemctl --user enable --now --no-block maildir-notify@"$instance".service done |