help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mcron service and PATH (was: Home service for mbsync?)


From: Tanguy LE CARROUR
Subject: Re: mcron service and PATH (was: Home service for mbsync?)
Date: Thu, 22 Feb 2024 14:51:45 +0100
User-agent: alot/0.10

Hi Emmanuel,


Quoting Emmanuel Beffara (2024-02-22 13:37:10)
> De Carlo Zancanaro le 22/02/2024 à 10:27:
> > On Wed, Feb 21 2024, Felix Lechner via wrote:
> > > Does anyone have an 'mbsync' home service, please? Thanks!
> > I just run mbsync as an mcron service. I have a custom script, because I
> > do some weird stuff to update my mu index afterwards, but it shouldn't
> > be hard to figure out how to call mbsync directly.
> > 
> > In my home services I have this:
> > 
> >    (simple-service 'mail-update-script
> >                    home-mcron-service-type
> >                    ;; Update email every five minutes.
> >                    (list #~(job '(next-minute '(0 5 10 15 20 25 30 35 40 45 
> > 50 55))
> >                                 "/home/carlo/.local/bin/fetch-mail")))
> > 
> > Obviously this doesn't handle configuring mbsync, which I do outside of
> > my home configuration.
> […]
> I recently noticed an issue with that: it seems that the command in the mcron
> job is called with an incomplete PATH.

Yes, indeed.

The "problem" was discussed, among other places, here:
<https://lists.gnu.org/archive/html/help-guix/2024-01/msg00091.html>.

Long story short: I decided to put (or inject) the full path in all my
config files.

-- 
Tanguy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]