all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Robert Vollmert <rob@vllmrt.net>
Cc: 36838@debbugs.gnu.org
Subject: bug#36838: mcron leaves zombies around
Date: Mon, 23 Aug 2021 23:55:42 -0400	[thread overview]
Message-ID: <87fsuzts1t.fsf@gmail.com> (raw)
In-Reply-To: <70F6F2EB-3619-4175-885F-C970448355D7@vllmrt.net> (Robert Vollmert's message of "Mon, 29 Jul 2019 17:39:33 +0200")

Hello Robert,

Robert Vollmert <rob@vllmrt.net> writes:

> It seems that mcron doesn’t clean up after itself. I regularly see
> some zombie processes around, presumably left over by each of my
> two 15-minute cron jobs:
>
> root     21285  0.0  0.3  24124  3248 ?        Ss   11:05   0:00 /gnu/store/mamwayq00mqs85kgs6ibww7xw6dy776s-mcron-1.1.1/bin/mcron /gnu/store/rdi71izz4d16v77hb8h2jks0s3q9zini-mcron-job /gnu/store/k7dn1v7qpi4kz183glmbgsf1c7pj19xx-mcron-job /gnu/store/lfyj23bzhc14y5rqi91g493jql9dphxk-mcron-job /gnu/store/mx9k5n92kmhryn3vh4607hrmnkjb8dl6-mcron-job /gnu/store/l4nxmajr0i5g07fxvrgnaw29zd1jq0qw-mcron-job
> root     26611  0.0  0.0      0     0 ?        Z    17:29   0:00 [mcron] <defunct>
> root     26612  0.0  0.0      0     0 ?        Z    17:29   0:00 [mcron] <defunct>
>
> In case that matters, they’re defined using the following:
>
> (define puzzledb-tweets-pzv-job
>   (let* ((exp
>           (with-imported-modules '((helpers))
>             #~(begin
>                 (use-modules (helpers))
>                 (let ((backend (read-secret "tools.jwt"))
>                       (twitter (read-secret "twitter.token")))
>                   (runl (string-append #$puzzledb-tools "/bin/tweets")
>                         "-backend_token" backend
>                         "-token" twitter
>                         "-deletes")))))
>          (script (program-file "puzzledb-tweets-pzv-job" exp)))
>     #~(job "*/15 * * * *" ; every fifteen minutes
>            #$script)))
>
> where the module helpers contains:
>
> (define-module (helpers)
>   #:use-module (ice-9 textual-ports)
>   #:export (runl read-secret))
>
> (define* (runl prog . args)
>   (apply execl prog prog args))
>
> (define* (read-secret file)
>   (string-trim-both
>     (get-string-all
>       (open-input-file
>         (string-append "/etc/puzzledb/secrets/" file)))))

Thank you for the report.

I don't seem to have any mcron zombies on my system and have one job
running every 5 minutes, another once per day, another every 3 days.

Does the problem still exist for you?

Thanks,

Maxim




  reply	other threads:[~2021-08-24  3:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-29 15:39 bug#36838: mcron leaves zombies around Robert Vollmert
2021-08-24  3:55 ` Maxim Cournoyer [this message]
2021-08-24 10:12 ` Leo Prikler
2021-08-29 21:35   ` Maxim Cournoyer
2023-07-20 13:19     ` Maxim Cournoyer

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=87fsuzts1t.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=36838@debbugs.gnu.org \
    --cc=rob@vllmrt.net \
    /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.