Browse Source

[systemd: mbsync] Added SystemD mbsync service and timer

main
Marcel Kapfer 1 year ago
parent
commit
1a0e68bb1e
Signed by: mmk2410 GPG Key ID: CADE6F0C09F21B09
  1. 1
      dirs.list
  2. 1
      links.list
  3. 14
      systemd/mbsync.service
  4. 9
      systemd/mbsync.timer

1
dirs.list

@ -10,3 +10,4 @@
.config/redshift
.config/rofi
.config/sxhkd
.confi/systemd/user

1
links.list

@ -25,6 +25,7 @@ shells/fish/conf.d .config/fish/
shells/fish/functions .config/fish/
shells/zshrc .zshrc
stumpwm/stumpwmrc .stumpwmrc
systemd/* .config/systemd/user/
x/Xmodmap .Xmodmap
x/Xresources .Xresources
x/xinitrc .xinitrc

14
systemd/mbsync.service

@ -0,0 +1,14 @@
[Unit]
Description=mbsync mail synchronisation
Documentation=info:mbsync man:mbsync(1) https://isync.sourceforge.io/
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/mbsync -q -a
ExecStartPost=/usr/bin/emacsclient -equ '(mu4e-update-index)'
Restart=on-failure
[Install]
WantedBy=default.target

9
systemd/mbsync.timer

@ -0,0 +1,9 @@
[Unit]
Description=Run mbsync and mu index every five minutes
[Timer]
OnBootSec=3min
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target
Loading…
Cancel
Save