From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EEFPAEy5fmfELwAAqHPOHw:P1 (envelope-from ) for ; Wed, 08 Jan 2025 17:43:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id EEFPAEy5fmfELwAAqHPOHw (envelope-from ) for ; Wed, 08 Jan 2025 18:43:40 +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=gE3MwfQT; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Sj65XYgJ; 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=1736358219; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OqKYbLX4XFsjNDDzixVmTJBOSoD5UD/yLh8UQviNfHA=; b=u02Ol3bI0uEA+s+u7Nbwnyou0TRubYKeo02WlPQAK6BGM/zQu4wIAjaIpq7pIRMOOJANS/ aieL6ept0AwPMxIe3ZBKAJVO2Xio40LxYWu3Xz9gCfDUftbFoQ0tvZOW4Df5AVyZr3+9an GUffreRNxjLutj207nLbFf5kRX2nfmvGkANYzB9fcfXTL+NxgLQLaW6l7RHIXEPSCkvATb HkkjO4ZMqNSaMRh+kUJMybSIeWXPDcXitJT5QZuSBabTWn4N16Wmdwya4g2z7gNnhpE6gG bYUeVSQ1HDjc1LYa631jHI0MPClsquhJ4cE2m85sGPuBKaeuC0jtW1itD/JccQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gE3MwfQT; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Sj65XYgJ; 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=1736358219; a=rsa-sha256; cv=none; b=urSqnxq6BgAyDYrTFXGGDdigO7PYf///fzxk11f+BKqBsGnnIU/lU1xuztISx0uqQHNyZF 0WBgKFjuCSXmImLp97cawrUNRWliCKdiUJfwU10s9yQe6ze1kG2qnTW+hv1WA0V0AngMJW AxfuUg1bxJouy9VMquQcUhgD7hWG5mlLZtVMo5xmseAjfvy+E4h8Q/65S2JGSkdqE1JyqS SW8Qb/ThS0PRqyJWOlEG1sd6sBZMKO78+8nFfc114XWlIkJU55DZsxAnfj2TaxxR5DU3Pl 5MsTDDP5Ig3n27k23EcYTgMyvcCmpzPZOkbBRpo8Y9cZTlHEcjRn9zMj6lg+aA== 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 E03E37A41A for ; Wed, 08 Jan 2025 18:43:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVa5E-0005Wp-Ng; Wed, 08 Jan 2025 12:43:08 -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 1tVa59-0005Uh-TZ for guix-patches@gnu.org; Wed, 08 Jan 2025 12:43:04 -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 1tVa59-00038l-Kg for guix-patches@gnu.org; Wed, 08 Jan 2025 12:43:03 -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:In-Reply-To:References:Subject; bh=OqKYbLX4XFsjNDDzixVmTJBOSoD5UD/yLh8UQviNfHA=; b=gE3MwfQT+h//4f4z6lLk5vjyhsCmr+tOJHNIJXlfD63ljb54V8KVz5lJtnCa0RBt+o8fN2G4bJ4PDNjR7QNPyEk+PC0lR3JT6XClhHfHaWXr0OZBumcUNknj+DJ+qLsW8kgpRjhV/2pjfCS8U3oxi0OTaFYtzvkFYuyikzSPkyJDbE2ZiaFAG7qsb9lUA2sKShcyQLsGvwHMFVp6gJGhvASp2kDIu9175z9vWaQpc8DI3yn9ttZEKMXipy2bod1WKvR1tmlUdyfDoRrZqh9aFNLFPZ4d2qtGtnjLC1WbU7BslCCuVH2FS5tuRoEr2tHVrNbv2Vu0NEqWZN1nqkmc8Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVa58-0007rw-87; Wed, 08 Jan 2025 12:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74860] [PATCH v2 00/12] Using the Shepherd's log rotation service References: In-Reply-To: Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: pelzflorian@pelzflorian.de, julien@lepiller.eu, guix-patches@gnu.org Resent-Date: Wed, 08 Jan 2025 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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?= , Florian Pelz , Julien Lepiller X-Debbugs-Original-Xcc: Florian Pelz , Julien Lepiller Received: via spool by 74860-submit@debbugs.gnu.org id=B74860.173635815030060 (code B ref 74860); Wed, 08 Jan 2025 17:43:02 +0000 Received: (at 74860) by debbugs.gnu.org; 8 Jan 2025 17:42:30 +0000 Received: from localhost ([127.0.0.1]:48772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVa4b-0007oZ-Vz for submit@debbugs.gnu.org; Wed, 08 Jan 2025 12:42:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59960) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVa4Z-0007o7-8O for 74860@debbugs.gnu.org; Wed, 08 Jan 2025 12:42:28 -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 1tVa4T-0002tF-5i; Wed, 08 Jan 2025 12:42:21 -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=OqKYbLX4XFsjNDDzixVmTJBOSoD5UD/yLh8UQviNfHA=; b=Sj65XYgJBUPK6C lj9am0jg1L/jY7mBjDq1hHMiGEdTq3J/V3ImSXTytx0qHVAQ3+ZcxzwCEWNfgJBRUVDBIkOeR/hVs iBzuvAbZ9DuqvYs+KQH23tfmzyJLx+lqj7iwQCHlgKyTGmfzo3VKw8ffyKObbFVIDlyp2ItxwaX2a kugkFK7jyTPKA6KpmHenmT6pdgXJe/t19NfF/JZjvvKjGTWXI9SxnV4NXfX7wdSWCfZdkp8zXeL+L qD/Kz5Y2U4uYjQIFbFpP4wZ/Il2/OxKgtAj+1SwWFCKSNayrJsBCThWNI1RV3bpvTDE5YdxWro+3C /goN94O3ChMLTpCBavjQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 8 Jan 2025 18:41:44 +0100 Message-ID: X-Mailer: git-send-email 2.47.1 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-Queue-Id: E03E37A41A X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.17 X-Spam-Score: -1.17 X-TUID: X9eFPbagMuXU Hello! Here’s v2 of this patch series. Notable changes: • Use ‘define-configuration’, as suggested by Maxim. • Default to zstd compression, as suggested by Maxim. Consequently, I added a commit to have zstd in ‘%base-packages’. • Add /var/log/messages & co. to the default value of ‘external-files’: without this, those files, produced by syslogd, would not be rotated. (This will be unnecessary once we switch to the Shepherd’s syslogd.) • Updated ‘log-rotation-service-type’ news entry and translation as proposed by Florian. • Added a news entry for ‘%base-home-services’, as proposed by Florian. I discovered that zstd log compression would leave uncompressed files behind. Fixed: https://git.savannah.gnu.org/cgit/shepherd.git/commit/?id=2b6aa913685b2ec77f90c504c063edeb12018dd9 I plan to release Shepherd 1.0.1 in a couple of days. Thoughts? Ludo’. Ludovic Courtès (12): gnu: shepherd@1.0: Add dependency on gzip and zstd. system: Add zstd to ‘%base-packages’. 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’. DRAFT news: Add entry for ‘%base-home-services’. doc/guix.texi | 128 +++++++++++++++++-- doc/he-config-bare-bones.scm | 27 ++-- etc/news.scm | 78 +++++++++++- gnu/home.scm | 11 +- gnu/home/services/admin.scm | 31 +++++ gnu/local.mk | 1 + gnu/packages/admin.scm | 14 ++- gnu/services/admin.scm | 231 ++++++++++++++++++++++++++-------- 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 +-- gnu/system.scm | 5 +- guix/scripts/home/import.scm | 8 +- tests/home-import.scm | 40 +++--- 18 files changed, 482 insertions(+), 247 deletions(-) create mode 100644 gnu/home/services/admin.scm base-commit: 911f205ddadf8255caa123671ccbb4efb9250ead -- 2.47.1