From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mGCUCeWDcmdGSAEAe85BDQ:P1 (envelope-from ) for ; Mon, 30 Dec 2024 11:28:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mGCUCeWDcmdGSAEAe85BDQ (envelope-from ) for ; Mon, 30 Dec 2024 12:28:37 +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=enyDAjoC; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HJKZCwz2; 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=1735558116; 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-to: 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=nSFXeLUwk6cqtDukIiCeRDwzB/oA5mO5fRe2Ph8fal8=; b=RMQ1xdm1j+u1Ed2UMl+W2P+PWJhADdoPCLDgBPWCADD9hu6U6TOsAhsHXAQmphsgNG2Bps TBjDvzIHkmuevX+1DdFoQKwNviJ4uckcOdErZ+CjTs2rHyAAwt92u20e1OEjBODSYYBbnH JpleDCc+OcKh6PeDlE1XZOglUCQGwn7VrkPHOkwRP+aVXYuSkuRF+0rSQU0k7KnjBVLwtu /sOHwfBqBN+JDX0K+jKzilqg8FQlS1SktJAd/NimHL9vUwMKc2K2oncLbqIidWnEmpZm/k eSKsHbsv8a1py/2jGrN5pPw8zpYqu1qRzvtzRtz+NfHx7APgvuacYarU/C8vPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=enyDAjoC; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HJKZCwz2; 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=1735558116; a=rsa-sha256; cv=none; b=fPuMgRVGyCOV7H/zZOqjwa4P3vqSCVQN+iI/Ddcf6eO1dKxMX0UlwMgJbE4SH1obKb30+S T/vu4u3LL04Jm82KMcNElMLSdOXGYSKlPdIb/00peDAf+rRihF5w0nxWDgXWc5QfY0lDpf 6JYIwEP+1qpohAfhaHaxDMnUfEg/Cohl53fIKg5fRZN2MdUjsZ32XXlAEi1X/QHZeP+PSR lMJ7iGvF10LiZBh6yqpLjZlTs4rkZxqtz8YHoEW9iK3m0Y9s2xza/bzfrUC/7sTp2Zj5KA hfFGOePKz0F2VrgA2eMR8HIR4+waBM7bi0WD7fbQRcdb+w8DK9fxtCcqsuBt3w== 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 2034022267 for ; Mon, 30 Dec 2024 12:28:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSDwQ-0000Vl-Oy; Mon, 30 Dec 2024 06:28:10 -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 1tSDwM-0000VP-TP for guix-patches@gnu.org; Mon, 30 Dec 2024 06:28:07 -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 1tSDwK-0005wH-0l for guix-patches@gnu.org; Mon, 30 Dec 2024 06:28:05 -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:References:In-Reply-To:From:To:Subject; bh=nSFXeLUwk6cqtDukIiCeRDwzB/oA5mO5fRe2Ph8fal8=; b=enyDAjoC22MZAisspR/mIXyShAZyCRKSXX7PLZ8dFwXCpCyUilqrXC8uHy5LvOQQSMOp7OvYloS4AGnhc12yAQKW3sv8dEraqU7pYZgtVXZaKLq8u5IVCRU2kwkkO+U6SucC5EOnK8M7F83PIQ6GUQbUqGYHcFlE1kr/EOc3X7oV8RJNOBwkb6vgv7YXdsfTuSp5BVwp0sh3SpN9sEjo8Sz47VWFYMrdlAExjRDgcW/OsvfhX5hx+gHhmHW9cY7eNX9mPa/JF8bB3TCGzQbgoHUtXOBUw3VmvoCndkVVyztTw8L2NzJhyQTfx/ijdFVPhScloJPGjWE2QmezODp63w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSDwI-0003id-SC for guix-patches@gnu.org; Mon, 30 Dec 2024 06:28:02 -0500 Subject: bug#74819: [PATCH v4] services: elogind: Support Hook Directories Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 30 Dec 2024 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74819 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45mg <45mg.writes@gmail.com> Cc: Maxim Cournoyer , 74819-done@debbugs.gnu.org Mail-Followup-To: 74819@debbugs.gnu.org, ludo@gnu.org, 45mg.writes@gmail.com Received: via spool by 74819-done@debbugs.gnu.org id=D74819.173555803814225 (code D ref 74819); Mon, 30 Dec 2024 11:28:02 +0000 Received: (at 74819-done) by debbugs.gnu.org; 30 Dec 2024 11:27:18 +0000 Received: from localhost ([127.0.0.1]:57532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSDvZ-0003hM-ML for submit@debbugs.gnu.org; Mon, 30 Dec 2024 06:27:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSDvX-0003h3-QK for 74819-done@debbugs.gnu.org; Mon, 30 Dec 2024 06:27:16 -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 1tSDvS-0005tr-Ig; Mon, 30 Dec 2024 06:27:10 -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:References:In-Reply-To:Subject:To: From; bh=nSFXeLUwk6cqtDukIiCeRDwzB/oA5mO5fRe2Ph8fal8=; b=HJKZCwz25Q0F1ls1OqyI ncXX2UzRCk75+x/hkBglig+NbwmPtXHPwok6FZknokhEkJEA6ktBibb4kah5fuwxI4qC5sOEa+4e9 u4C9whOGjNQMZu101incMQ2eCatyYl4xM5p+nzRW2sHtKQG1262ExLZf0UbKfy2Kvyi0IytmcpK3l piyqq6y+9m3XF4/4zVOAmFL9LM9F12VfaLxn3Gojx7+cFAmfey1zyA841/YWC5EXt+QhkUwIAj4U2 +BW0BwSqvjbwSoyMym9BOFoaFqAzI+dAj01j4c5kwxMPuT+24KT9GmGBZOme+ZB6Dj4LVCPwPgz9Y 9hRwYfrd9rCbcw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <276103d4ae303592ff8ce4e83438e8c3d1c020bf.1735301702.git.45mg.writes@gmail.com> (45mg.writes@gmail.com's message of "Fri, 27 Dec 2024 07:15:02 -0500") References: <7286c9dd75c4853f5811720150c027b9d9b511d7.1734003226.git.45mg.writes@gmail.com> <276103d4ae303592ff8ce4e83438e8c3d1c020bf.1735301702.git.45mg.writes@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 30 Dec 2024 12:26:43 +0100 Message-ID: <87msgdtnrg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.40 X-Spam-Score: -5.40 X-Migadu-Queue-Id: 2034022267 X-TUID: xV+tbU2f55Tk Hello, 45mg <45mg.writes@gmail.com> skribis: > Allow the user to specify scripts to be added into Elogind's hook > directories. These scripts will be run before/after > suspend/hibernate/poweroff/reboot. > > Also allow setting the associated config options. > > * gnu/services/desktop.scm (elogind-configuration): add > `system-sleep-hook-files`, `system-shutdown-hook-files`, > and 4 new config options. > (elogind-configuration-file): Add entries for the new config options > under the `[Sleep]` section. > (/etc/elogind): New function, to generate /etc/elogind directory. > (elogind-service-type): Extend `etc-service-type` using `/etc/elogind`. > * doc/guix.texi: Document the new options. > > Change-Id: I7e22cbaa9d031049b9d085ba0ce4cc8a8b4f16ff I integrated the cosmetic changes Maxim proposed, tweaked the commit log to better match our conventions, and applied it. Thanks! Ludo=E2=80=99.