From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +OQWDJW7XGeuMAAAqHPOHw:P1 (envelope-from ) for ; Fri, 13 Dec 2024 22:56:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +OQWDJW7XGeuMAAAqHPOHw (envelope-from ) for ; Fri, 13 Dec 2024 23:56:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gTTQBHQK; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="G+buE+T/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734130581; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=c/AWB2ceuTdYvPrxxdjy7qDH0a1kn0L+eAEoqQiOJYo=; b=OoR226LEpSgw7PDlCbHMG8+5SKAcnAm/NDNH3LKVYDFXm6GRa2OkNv703AK+8Ha22mhN2G yrSXmMNDjmTYpH7rHafVZ6ZzSnm1qA7ma+lx9fsyzAW5RzpJOn8CbD8VBD8MjLLonLsgrN 52wRSzZQz350iGspwZND5zcoMdtmV2BhqjcvhsL7yr2qWFHOOlInJuyc9y9S6sVhvYQFPK biGwbeaACzBMKtGyuft9DvFHRmJh9fuZ+a2MHX3edc/DUQFVQZywaq/z8SwEc79HzN2BsN 7+MTgNeN2KTV3gMl8qp/OKg8HXtelh5FP7tC946N5XyG2dz4XDyOO7waeeuY5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gTTQBHQK; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="G+buE+T/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734130581; a=rsa-sha256; cv=none; b=QqraJQClQsWuLSgD4043Em11w1pMsi3fcezKDhPbrT5JbojKl13ijLFxnkyCjJ2tIyJIY1 riQ2UEvRtJSQGRMUrp8yLGQXJpzYsCxhInffwQxqLRibbVRXaTevMucuEU68ej7y8GrCwf Fc/nZXN+rYCmUF267naL5+P4Zs9PoazJc3GakzyAuwrAwa/WREmID2hfXnTZSerkDq76P7 ChbICurc8oRxUhC7KJGAdtIeykZwyYiXqiNilyXSTwFBfnocCyC4tj1xTFZJDqQS8adQd6 fAB9FVLNTxQqwNDynZadC3Ur3Hw7dwZjTaPUA0fFSR5MLV1YTSOQ3KdaAmHE3A== 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 C5C334675B for ; Fri, 13 Dec 2024 23:56:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMEZo-0003DR-08; Fri, 13 Dec 2024 17:56:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMEZm-0003DA-EX for guix-patches@gnu.org; Fri, 13 Dec 2024 17:56:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMEZm-0001QH-5t for guix-patches@gnu.org; Fri, 13 Dec 2024 17:56:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=c/AWB2ceuTdYvPrxxdjy7qDH0a1kn0L+eAEoqQiOJYo=; b=gTTQBHQKQ3NVlMY/rJjnojt+pCuQpsIlyrlpeg2CimlZNi1OW326+7cY70oaiXovZE5Pv0LzT3xSQr0nwKwi11qZj/aoA8GQySau0aiVsvuLGh/9X4tVAnHWnBWPeOgoMirh0ZAaMYWL9WkS5SaffawRE2tbi0Ds6njycs8AWDGw0uWB30tFUexZyj9DwEBgIcRYxFY3ZyVAbAabxRhNV01MoqNTJ8kdRCeJx8Lu6ZGjQHCClzrGl+Uit6TlIfx2MQ9IiA+Xhm4VtyYcRiRrFKWfW9/yfjYvJwXogEMJ0Tbbg0mD0hMcwyt5ls3UVif/b9ICBhvz5VLvH4gDcd58ug==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMEZl-0001CJ-Vp for guix-patches@gnu.org; Fri, 13 Dec 2024 17:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74860] [PATCH 00/10] Using the Shepherd's log rotation service Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Fri, 13 Dec 2024 22:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74860 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74860@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , ( , Andrew Tropin , Janneke Nieuwenhuizen , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer , Tanguy Le Carrour X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: ( , Andrew Tropin , Janneke Nieuwenhuizen , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxim Cournoyer , Tanguy Le Carrour Received: via spool by submit@debbugs.gnu.org id=B.17341305484576 (code B ref -1); Fri, 13 Dec 2024 22:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Dec 2024 22:55:48 +0000 Received: from localhost ([127.0.0.1]:44531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMEZY-0001Bj-7r for submit@debbugs.gnu.org; Fri, 13 Dec 2024 17:55:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:48812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMEZV-0001Ba-4H for submit@debbugs.gnu.org; Fri, 13 Dec 2024 17:55:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMEZT-0002AT-AZ for guix-patches@gnu.org; Fri, 13 Dec 2024 17:55:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMEZS-0001Oa-5O; Fri, 13 Dec 2024 17:55:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=c/AWB2ceuTdYvPrxxdjy7qDH0a1kn0L+eAEoqQiOJYo=; b=G+buE+T/FIqt45 0HvHYhQYteeloZe6snF34t9Vk6NfuFQY+fdWJhq+F93xs9SYio7pTzHOXABu7JSxWTkKVGiY8RWPk TSH0J18/yspG7gYeLqwcrStx3fQSOUmmRGfnnUWkddKCQYInSfYQB5k3Jb5xhFaxteAhp4YKNgj1b mPvIeA52eePxFJJkZQne/b3ldIFOWKgKiQcRH6Ue0eM8jt3gCl6b+b5hVPT066yNerAc2wNuWW/9R E5M2IeH5L3i23sQgBS95sg9UpDT9cc1A5ejfxXn/n4jM18fUOJzfJ8OXfkwFV1DI31QjyioOQrJyH Xyg0f56V93jjYUWqDSDg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 13 Dec 2024 23:55:20 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -0.07 X-Spam-Score: -0.07 X-Migadu-Queue-Id: C5C334675B X-TUID: Y6k3h+J1RRMY Hello Guix! Shepherd 1.0 provides a bunch of new features, but now we need to bring them to Guix System and Guix Home. This patch series focusing on log rotation: (1) using the Shepherd's log rotation service, (2) getting rid of Rottlog usage and deprecating it, and (3) adding log rotation for Home. Since ‘log-rotation’ only exists in version 1.0 of the Shepherd, reconfiguring a system that runs an older version of shepherd will warn that “some services could not be upgraded and reboot may be needed”. If the user chooses not to reboot right away, there are several possibilities: • If the mcron service was not unloaded and is still running, it will run rottlog as before, that’s fine. • If the mcron service was not unloaded, but the user ran ‘herd restart mcron’, the new mcron will not have Rottlog among its jobs, so log rotation will no longer happen until reboot. • If the mcron service was unloaded (because nothing else in the new system config needed it), then log rotation will no longer happen until reboot. To sum up: worst that can happen is that log rotation stops until the system is rebooted. (Of course everything is fine if the machine already runs Shepherd 1.0.) That seems acceptable to me, though I guess we can wait for two weeks before pushing this so more people have upgraded to 1.0. Thoughts? Ludo’. Ludovic Courtès (10): gnu: shepherd@1.0: Add dependency on gzip and zstd. services: Add ‘log-rotation-service-type’. services: log-cleanup: Rewrite as a Shepherd timer. services: unattended-upgrade: Rewrite as a Shepherd timer. services: Switch from mcron + Rottlog to Shepherd’s log rotation. services: rottlog: Deprecate. DRAFT news: Add entry for ‘rottlog-service-type’ deprecation. home: services: Add log rotation service. home: Define ‘%base-home-services’. home: Add log rotation to ‘%base-home-services’. doc/guix.texi | 119 ++++++++++++++++++-- doc/he-config-bare-bones.scm | 27 ++--- etc/news.scm | 19 ++++ gnu/home.scm | 11 +- gnu/home/services/admin.scm | 31 ++++++ gnu/local.mk | 1 + gnu/packages/admin.scm | 14 ++- gnu/services/admin.scm | 199 +++++++++++++++++++++++++--------- gnu/services/audio.scm | 26 +---- gnu/services/base.scm | 10 +- gnu/services/cuirass.scm | 27 +---- gnu/services/file-sharing.scm | 6 - gnu/services/linux.scm | 8 +- gnu/services/networking.scm | 61 ++--------- gnu/services/web.scm | 17 +-- guix/scripts/home/import.scm | 8 +- tests/home-import.scm | 40 +++---- 17 files changed, 383 insertions(+), 241 deletions(-) create mode 100644 gnu/home/services/admin.scm base-commit: 0787a180b3ca64d3958438920ca1b58a2a27fba4 -- 2.46.0