all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tanguy LE CARROUR <tanguy@bioneland.org>
To: Emmanuel Beffara <manu@beffara.org>, help-guix@gnu.org
Subject: Re: mcron service and PATH (was: Home service for mbsync?)
Date: Thu, 22 Feb 2024 14:51:45 +0100	[thread overview]
Message-ID: <170860990545.24790.2720174894919691560@bioneland.org> (raw)
In-Reply-To: <20240222133710.GD2086@beffara.org>

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	other threads:[~2024-02-22 13:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-21 20:47 Home service for mbsync? Felix Lechner via
2024-02-21 20:59 ` Aleksandr Vityazev
2024-02-22  8:03 ` Saku Laesvuori
2024-02-22  8:05 ` Efraim Flashner
2024-02-22  9:27 ` Carlo Zancanaro
2024-02-22  9:59   ` Tanguy LE CARROUR
2024-02-22 12:37   ` mcron service and PATH (was: Home service for mbsync?) Emmanuel Beffara
2024-02-22 13:51     ` Tanguy LE CARROUR [this message]
2024-02-22 14:05       ` Emmanuel Beffara
2024-02-22 14:17     ` Felix Lechner via
2024-02-22 10:15 ` Home service for mbsync? Miguel Ángel Moreno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170860990545.24790.2720174894919691560@bioneland.org \
    --to=tanguy@bioneland.org \
    --cc=help-guix@gnu.org \
    --cc=manu@beffara.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.