Make sure we don't run two instances of mbsync at the same time

This commit is contained in:
Tunui Franken 2023-09-18 23:24:29 +02:00
parent 1631b45edf
commit 2a48f15fe0

View file

@ -3,7 +3,7 @@ Description=Mailbox synchronization service
[Service]
Type=oneshot
ExecStart=/usr/bin/mbsync -a
ExecStart=sh -c '/usr/bin/pidof -q mbsync || /usr/bin/mbsync -a'
[Install]
WantedBy=default.target