From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 1Jd8KGYNzF5OdgAA0tVLHw (envelope-from ) for ; Mon, 25 May 2020 18:24:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ALnpI2YNzF7HWwAAB5/wlQ (envelope-from ) for ; Mon, 25 May 2020 18:24:38 +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 097CA9403EC for ; Mon, 25 May 2020 18:24:37 +0000 (UTC) Received: from localhost ([::1]:43986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdHm6-0003ls-UI for larch@yhetil.org; Mon, 25 May 2020 14:24:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdHY2-0004NU-BN for guix-patches@gnu.org; Mon, 25 May 2020 14:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdHY1-00081Y-UP for guix-patches@gnu.org; Mon, 25 May 2020 14:10:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdHY1-0005BH-PC for guix-patches@gnu.org; Mon, 25 May 2020 14:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40950] [PATCH] mcron, create /var/cron/tabs on activation Resent-From: sirmacik Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 May 2020 18:10: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 40950@debbugs.gnu.org Received: via spool by 40950-submit@debbugs.gnu.org id=B40950.159043014819845 (code B ref 40950); Mon, 25 May 2020 18:10:01 +0000 Received: (at 40950) by debbugs.gnu.org; 25 May 2020 18:09:08 +0000 Received: from localhost ([127.0.0.1]:42502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdHX9-0005A1-TB for submit@debbugs.gnu.org; Mon, 25 May 2020 14:09:08 -0400 Received: from mail.freearts.agency ([51.68.137.137]:53416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdHX8-00059t-GM for 40950@debbugs.gnu.org; Mon, 25 May 2020 14:09:07 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 67F604127B; Mon, 25 May 2020 20:08:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wioo.waw.pl; s=dkim; t=1590430137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T7gz5n/NjNSx0FT7Lv90y4Z6KznKlvRfIxkyAdDi2JM=; b=XuWIaVsdZ0ug3eDWOLrdHydck9IGu0a2UTv8zemc4hL6BrK5rE7dW7Z8YKCWUqsgzJ5oAY 7XNevSF/AY+Q3xjvJkDYoKCKzS4zBCYipG013E3ylWivlrGBnhbCeYvtl4A8kGRMkqtGn1 ADQUanYu526V5fH0I+AbS/rI3tdkpBB085TyFEeEXhnK02U5G1eqGNpqu43FYoe4ku7V4e Y9qhqX+cZn5yiskG982mb5WuYfJRHkUpAx93rfxlu9pOU08S+XZ/ySKJQ4MvgDnnSIk6rm 5DP7zre5dVL90sIXCM0qlqFeHVvdlpMQTwSevIZuxgVY0I55UEcUp2E7DKRgAw== From: sirmacik References: <20200428212852.19552-1-sirmacik@wioo.waw.pl> <877dxvb9a9.fsf@gnu.org> <87mu6q78os.fsf@gnu.org> X-PGP-Key: https://sirmacik.net/dl/sirmacik_wioo.asc Date: Mon, 25 May 2020 20:08:50 +0200 In-Reply-To: <87mu6q78os.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 02 May 2020 15:44:35 +0200") Message-ID: <87367nriod.fsf@wioo.waw.pl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=wioo.waw.pl header.s=dkim header.b=XuWIaVsd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wioo.waw.pl (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-Spam-Score: 0.09 X-TUID: LFJ7dnkjdVvf Ludovic Court=C3=A8s writes: > Hi Marcin, > > Marcin Karpezo skribis: > >> 2 maj 2020 00:06:16 Ludovic Court=C3=A8s : >> >>> Hi Marcin, >>> Marcin Karpezo skribis: >>> >>> >>> > With big rekado help I'm sending you a patch with at least >>> > partially fixes the issue of crontab -e reporting missing >>> > /var/cron/tabs directory. >>> > >>> Unless I=E2=80=99m mistaken, creating /var/cron/tabs will silence =E2= =80=9Ccrontab >>> -e=E2=80=9D, but those entries will still be ignored because mcron=E2= =80=99s crond >>> is not running (IIRC the cron functionality of mcron is separate and >>> requires you to run crond, which we don=E2=80=99t do.) >>> One option would be to write a different service altogether running >>> that daemon and creates /var/cron/tabs like you did. >>> Another option would be to remote the =E2=80=98crontab=E2=80=99 program= from our >>> =E2=80=98mcron=E2=80=99 package to at least avoid disappointments. >>> Thoughts? >> >> Why won't start supporting and running mcron's crond daemon? That way >> guix will finally have normal fully functional cron which will ease >> administration not only on personal machines but also on server >> side. It's nice to have everything defined in one config file but it >> isn't as handy for multiuser setup. > > Yeah I agree. (I personally run a user shepherd, itself starting a user > mcron, but I admit that=E2=80=99s a config not everyone may be willing to > replicate.) > >> I think instead of avoiding disappointment it would be better to >> positively surprise the users. I know that guix thrives in what sets >> it apart from other distros, but it's better to keep things standard >> whenever its possible and follow the rule of least >> surprise. Especially if it won't be damaging for the goals of the >> project. > > Agreed! > > That brings us to my first proposal above: writing a crond service that > runs mcron=E2=80=99s crond. Would you like to give it a try? > > (There=E2=80=99s also scron available. I think someone had proposed a se= rvice > for it, but I can=E2=80=99t find it.) Dear Ludo=E2=80=99, I haven't forgot about this issue. Writing simple service isn't a problem, but I've found out that despite running cron daemon, crontab doesn't notice it. I've reported that behaviour on mcron mailing list[1]. Second issue that I haven't figured out yet is creating crontab file for each user of the system upon cron service activation. It needs /var/cron/tabs to be owned by root: and crontab for each user to be owned by him, ideally by (for example) user1:user1.=20 [1] https://lists.gnu.org/archive/html/bug-mcron/2020-05/msg00012.html -- Cheers, sirmacik PGP: 0xE0DC81D523891771