From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gEFaJR5UEWF0QgEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 18:13:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8NdIIR5UEWGBUAAA1q6Kng (envelope-from ) for ; Mon, 09 Aug 2021 16:13:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EBA062A130 for ; Mon, 9 Aug 2021 18:13:17 +0200 (CEST) Received: from localhost ([::1]:45834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD7tr-0007zA-LH for larch@yhetil.org; Mon, 09 Aug 2021 12:13:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD7tf-0007w6-9g for guix-patches@gnu.org; Mon, 09 Aug 2021 12:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46060) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mD7td-0005FA-PP for guix-patches@gnu.org; Mon, 09 Aug 2021 12:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mD7td-00068Z-Kn for guix-patches@gnu.org; Mon, 09 Aug 2021 12:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40950] [PATCH] mcron, create /var/cron/tabs on activation Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Aug 2021 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40950 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Dale Mellor Cc: 40950@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , Marcin Karpezo Received: via spool by 40950-submit@debbugs.gnu.org id=B40950.162852553823504 (code B ref 40950); Mon, 09 Aug 2021 16:13:01 +0000 Received: (at 40950) by debbugs.gnu.org; 9 Aug 2021 16:12:18 +0000 Received: from localhost ([127.0.0.1]:57599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD7sw-000672-C8 for submit@debbugs.gnu.org; Mon, 09 Aug 2021 12:12:18 -0400 Received: from mail-qt1-f172.google.com ([209.85.160.172]:33607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD7su-00066o-H3 for 40950@debbugs.gnu.org; Mon, 09 Aug 2021 12:12:17 -0400 Received: by mail-qt1-f172.google.com with SMTP id b1so12955760qtx.0 for <40950@debbugs.gnu.org>; Mon, 09 Aug 2021 09:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=t2BbO+nomhs4dBjRG/OYSjrCVJ8i4uIOl+cxeQkx0G4=; b=htTJcCUmSmrKbYb6rTC7c+ekM+8ArnYLlGTPP6jgce03udIlt1LTzrIj6gylJ3QI9u iiBIwKISvO5lIpaDvDjCNe7Qy7b0cLHvMylWrF4Gbav7hyV/quAQW9w4SfWgcnvz4u/N 0j9bOqiSVCNOGu02FL14I57XD4AFqG1oVLvnOiMfDh+pITzL7vACYGQaZtuOu9yRZ9S0 VBui+LZBQesPZxwCbtaRHPtd1KQ7/lIr0WM0ZBEz5CsJrPecEjhJICUl+FH2HvXcjVsI O3eJsrarRW/X5SHqgzdn2JsfVTzaS1ASDMz85MWiKw6tULz/3+ZFBmGF8oLimHCyZT4b DBlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=t2BbO+nomhs4dBjRG/OYSjrCVJ8i4uIOl+cxeQkx0G4=; b=rK5rPGEWC1+TzTDJuDDsmlyTqYMRyt9XsenSDw+tEF4gEfzTnxnEW/Njfq/LOiMOdt fnFsIetWx40IPefD3YLhtcFa2fQ7ifSZu7NNoAFi6Nxn0N0AxCJLGX4SwjlaGaP9RdBO Mh9y+/xPeGU/SyLc93QvPwug/Gq3OUy+LxE3squLmGEAUDx7KZzZADurmakZSTjHfVKL IJjGOfrYJsv9jjkH0aWMu1yZqdGm2AiL5EdQ3IcVcpOYysklS0yX7HRBTUpYaTQIY0Fs CztHOFHV3udYMYeldyzRdDJiRftkhlMEljHYpVapQr4X5u1SQdHecGbPuzJJdZPRbwOj lwAQ== X-Gm-Message-State: AOAM5330zCHqqCnPHB97z/6wfqWyxOCyXJCdYd9kK+pPjjCLuVDrQLMk D1rDZjxsZ16O9phCdxOjSag= X-Google-Smtp-Source: ABdhPJzcWjQAQC31JsCDZRNxCQRLxPB0KgI7byETXO8d42WHHQaxte+yA94+9T0CT8Ne6NrBXMX/Gw== X-Received: by 2002:a05:622a:1995:: with SMTP id u21mr21158460qtc.77.1628525531078; Mon, 09 Aug 2021 09:12:11 -0700 (PDT) Received: from hurd (dsl-155-134.b2b2c.ca. [66.158.155.134]) by smtp.gmail.com with ESMTPSA id j2sm6895900qtn.46.2021.08.09.09.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 09:12:10 -0700 (PDT) From: Maxim Cournoyer References: <20200428212852.19552-1-sirmacik@wioo.waw.pl> Date: Mon, 09 Aug 2021 12:12:09 -0400 In-Reply-To: (Dale Mellor's message of "Wed, 17 Jun 2020 13:43:03 +0100") Message-ID: <87bl661tt2.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628525598; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=t2BbO+nomhs4dBjRG/OYSjrCVJ8i4uIOl+cxeQkx0G4=; b=PqHUzu0O+9jD8JnOGqMBtdJ/AvTAke3amA2TnIX/N7H2ySIGGCtAWZLQ//O6+oR2Q/X6vZ aMATuGyVVQFmCLcIPc9UPDf7eSeu/02qjXq6bXCzIGRje2jd4o+TMiwRCieIRdwwdsBpBr QL3WRx9LTsXaPOp8rA0/tG6KI0hSPJtwMn4iPxU+iyG+v+dLkLCzevSAvI1GYj+1vvaJck /2fkCGgBKVF8idUP1Dm0UM+x4kvSIsLIu6+GyobeKQ7rRL47qhSAvX0HCORvyR/Vucn8ZT gLgw71k7HqqVLffC5Nm0NPK1IHL0VhAbZi3yJXhKt6WWWhY1hEpGcYDb6IylmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628525598; a=rsa-sha256; cv=none; b=OO/cl11wIyTBQfhCzlNrTlrNzqBeFN0Lk0LcQUnoFzhnTirs+AEi69i1a/AHur19Td4kgC Ee3IH4ao0ij0omSByMOZq24EH42FI9pEOMQYzoBf+SUJcHez3mySURGiMGtRexELttg6fP RinpdnggoiJ88fgyILiK1qaqTdrYMfR1yIMnNXDCxy+ToQtCBxC3tz6awSryWbf3COD8KK +LOQ9biRTLikkI44drPUrlWEC3bis027SIvYV02at7f2vbq1Z/PUvTuZ6DoeA8kQ08NKDp sf/UZjqbAR5dkCRHvEvyELcT8lSlnjdzU8j5EwuQpts8qzWMaedYXt2oEcO6zQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=htTJcCUm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=htTJcCUm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EBA062A130 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4FX4Zodz+Ks9 Hello, Dale Mellor writes: > Hello, > > for information I don't agree with having a central crond process > running on the system. I put it in mcron only for compatibility with > legacy crons, but think that it is *much* better for each service which > needs one, and each user, to run their own private daemon and manage their > own configuration. The reasons include: > > * reliability: one faulty client or scheme configuration clause is less > likely to make the system unavailable to others; > * security: UNIX users can only mess with their own configurations, and > there is no need for any SUID programs; > * safety: I think the mcron personality gets much more use in practice, > hence is tested by many more people; > * efficiency: using the legacy crontab directories means that the daemon > has to wake up and scan all these files once per minute, even if the > actions are only performed once per day or even once per month; > * convenience: I think it is actually simpler all round to have separate > configurations for each utility that needs cron service, rather than > splicing and editing existing central system-wide files. > > Basically, all these things are the reasons I developed mcron in the > first place. > > As an aside, I would love to be able to pull out all of the legacy > compatibility stuff from the mcron code, as it would massively simplify my > life! (Don't worry, it probably won't happen). Thanks for tipping in! In light of this, it seems it'd be a better option to add crond support at the level of Guix Home, which would allow easily configuring mcrond as a user service rather than at the system level. Thanks, Maxim