Re: systemd timer not working

2022-07-23 Thread Oswald Buddenhagen
On Sun, Jul 24, 2022 at 08:33:03AM +0530, Vikas Rawal wrote: What should I do for more verbose error reporting? as johannes already suggested, add the -D option. systemd has protection mechanisms against error floods. you can configure the exact behavior. Can you kindly point to how? Is the

Re: systemd timer not working

2022-07-23 Thread Vikas Rawal
> > > > > i guess? systemd has protection mechanisms against error floods. you can > > configure the exact behavior. > > Can you kindly point to how? Is there a way of telling systemd to just > silently ignore these errors? > > This seems to make systemd ignore the errors: https://stackoverflow.co

Re: systemd timer not working

2022-07-23 Thread Vikas Rawal
> > I think it is working at the moment. But it stops every now and then. As > > you would see below, mbsync.service also ends with an error. There is no > > such error when I run mbsync -V daily myself. > > > the error is certainly stochastic, so it's more likely to occur when you > auto-poll ofte

Re: systemd timer not working

2022-07-23 Thread Johannes Kastl
On 22.07.22 02:28 Vikas Rawal wrote: > I think it is working at the moment. But it stops every now and then. As > you would see below, mbsync.service also ends with an error. There is no > such error when I run mbsync -V daily myself. Is this error makes systemd > stop running it repeatedly? In ad

Re: systemd timer not working

2022-07-21 Thread Max Gautier
> I have modified the scripts slightly based on recommendations on this > thread. But this still does not work. I am just looking for mbsync to run > every two minutes. What do most people use? I switched recently to initial sync on starting (but maybe I'll change that to start to first time mutt

Re: systemd timer not working

2022-07-21 Thread Oswald Buddenhagen
On Fri, Jul 22, 2022 at 05:58:26AM +0530, Vikas Rawal wrote: I think it is working at the moment. But it stops every now and then. As you would see below, mbsync.service also ends with an error. There is no such error when I run mbsync -V daily myself. the error is certainly stochastic, so it's

Re: systemd timer not working

2022-07-21 Thread Vikas Rawal
I think it is working at the moment. But it stops every now and then. As you would see below, mbsync.service also ends with an error. There is no such error when I run mbsync -V daily myself. Is this error makes systemd stop running it repeatedly? > Please run the following commands: > > systemct

Re: systemd timer not working

2022-07-21 Thread Johannes Kastl
On 21.07.22 18:20 Vikas Rawal wrote: > I have modified the scripts slightly based on recommendations on this > thread. But this still does not work. I am just looking for mbsync to run > every two minutes. What do most people use? > > It is crazy that something so obvious should be so difficult

Re: systemd timer not working

2022-07-21 Thread Simão Afonso
On 2022-07-21 21:50:04, Vikas Rawal wrote: > I have modified the scripts slightly based on recommendations on this > thread. But this still does not work. I am just looking for mbsync to run > every two minutes. What do most people use? I configured a hotkey on "neomutt", I don't need to check the

Re: systemd timer not working

2022-07-21 Thread Vikas Rawal
I have modified the scripts slightly based on recommendations on this thread. But this still does not work. I am just looking for mbsync to run every two minutes. What do most people use? It is crazy that something so obvious should be so difficult to get right. Vikas --- # mbsync.service [Un

Re: systemd timer not working

2022-07-15 Thread Max Gautier
Check the status for both the timer and the service, but on the top of my head: > [Service] > ... > ExecStartPost=/bin/sh -c 'notmuch new && afew -t -n && afew --move-mails -v > && echo "notmuch `date`" >> ~/tmp/maillog.log' I had problems in the past when breaking Exec lines on several lines, mig

Re: systemd timer not working

2022-07-14 Thread Oswald Buddenhagen
On Fri, Jul 15, 2022 at 02:47:17AM +0530, Vikas Rawal wrote: I am somehow unable to get systemd to run mbsync regularly. I have created the following files and enabled them. Would appreciate any pointers about what might be wrong here. did you run `systemctl status` on mbsync.service and mbsyn