Make sure we don't run two instances of mbsync at the same time
This commit is contained in:
parent
1631b45edf
commit
2a48f15fe0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue