Skip to main content
Topic: SOLVED: mbsync without systemd (Read 283 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SOLVED: mbsync without systemd

When I was using systemd, I had mbsync setup as a service and timer. I'm unsure how this might be done w/openrc  (or if it can be)
Any ideas/help would be appreciated.

What I have done recently, was the following under a user cron.

Code: [Select]
*/5 * * * * /usr/bin/mbsync -aq -c /home/cds/.config/mbsync/config > /dev/null 2>&1

The above does not appear to be working as I would need to manually tell Mutt to sync up.
Supercalifragilisticexpialidocious

Re: mbsync without systemd

Reply #1
I was able to tool around with this and I now have this working.
For those that want to know - here is the line I used:

Code: [Select]
*/5 * * * * /usr/bin/mbsync -aq -c /home/cds/.config/mbsync/config && /usr/bin/notmuch --config /home/cds/.config/notmuch/config new >/dev/null 2>&1

Supercalifragilisticexpialidocious

Re: SOLVED: mbsync without systemd

Reply #2
I am using cron for that.

crontab -l:
Code: [Select]
# mm  hh  DD  MM  W /path/progam [--option]...  ( W = weekday: 0-6 [Sun=0] )
  */3 *   *   *   * /home/myuser/bin/checkmail >/dev/null 2>&1

~/bin/checkmail:
Code: [Select]
#!/usr/bin/env bash
mbsync -a

Since everything works reliably you should check if cron executes when you say so and if the job/script has executable set.

 

Re: SOLVED: mbsync without systemd

Reply #3
Yes - that's what I'm doing all on one line in addition having notmuch updated also (as I posted above).
For me, works perfectly
Supercalifragilisticexpialidocious