From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 OPAGK47XNWf2FQAAe85BDQ:P1 (envelope-from ) for ; Thu, 14 Nov 2024 10:57:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OPAGK47XNWf2FQAAe85BDQ (envelope-from ) for ; Thu, 14 Nov 2024 11:57:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=pWUEHCUE; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-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=1731581838; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Kn389L6bCCdyXxeOvcY1z1RaHCf4P+7mXkOWPMbsUZo=; b=qOsGOYGZGFhCoa1YIKxyK9J89mXfkepklAFCxHHnxfm6VtqPxTG7afFF97szZkowLb9Mga K2mtSlsr9D2Hx5RTFTajdIDOKJWUPu5KQPRM/wtZ+xbjIFj1XUn187qKsP8ytlUwsgqE/k zyn6xXIOebkd7fpbeZW6aaV1j78ib+7K4BC61qpeCUp4dN1Ga8GSy/rXTHaIG4CbHkJDCS 4E3XbcWkumRfIk0HHRfWs8U6irMERwESQFPAWZTXJdk6F41g+PkB4UxrLHquDpL5vUX8LI gLeedU97Zu2KS/1NhTwvjc4LotNZTLCY/BY/wmYW8oJFPQDOCnjy45kOR+yv1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731581838; a=rsa-sha256; cv=none; b=bdetgmwoZCKW9cCIvqoGUhBgesvIwaqQW4XSU8ApxxtPh8M43K/YQknHkf5UfeWfuqNK8D Wh9/9QJ66TvsL+eQAcaumPf7XcwtNf4V4tb/shEXlNaPwWTy5VhkmlW5frfsDTt43F/fRB WY8Rdg9WAyz5h4xlfq5cHHCd7NViCH4j1VC5PyGAL+iPFANColfB4EtL9WDz3y1GMJTVJk W0aSuJiZdnM8uXRDvjrl/bhpdCdoqXjF/XCJDhlPcM6GPmS1IPTgd/N/fuLWWLY7I+BYPx qSH92+6SRaQIQGLZ9XxJ/Bvpgu4NZLb/fiCb/sc7RAUiRS4agrbmNNQxot1rmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=pWUEHCUE; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org 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 18E5850924 for ; Thu, 14 Nov 2024 11:57:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBXWo-00019T-Mu; Thu, 14 Nov 2024 05:56: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 1tBXWm-000194-HS for guix-devel@gnu.org; Thu, 14 Nov 2024 05:56: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 1tBXWl-0006Qz-NF; Thu, 14 Nov 2024 05:56:43 -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=Kn389L6bCCdyXxeOvcY1z1RaHCf4P+7mXkOWPMbsUZo=; b=pWUEHCUEvAYmdIqt9Wyj LnqQCBoXT8VLrbm/iu1zUynEK+D+rx+xVPe+DRj9rt7RqxHCqSSD0AHBH9lVq/dxaNTAnEf7tYjY9 5TNbDauJfVUg5zcl/0u4vxi4bjuGn6R+JR5z51QE4qNlmkUqFlnolGRHRRWC8/59ZY/MQW8znJip5 xhJ2+3Heybm17ZV7NWAcX063d7lv43bvXHW5gJJX4TcStLAIlZbaXuixCTZVTJF1T+OK/LIw+RSpJ agfYGDll3hZ0uZ+mJKJQtvoxsMkW/Ygmu8TcnTEHCNjyAExifBwei4mFYs9ChSQ3RXXsCg8zIqVC4 YX0fnnFogWjrdA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Cc: Felix Lechner Subject: Re: [Shepherd] Shutdown and reboot entries in utmp? In-Reply-To: <87ed3h9dt4.fsf@lease-up.com> (Felix Lechner via's message of "Mon, 11 Nov 2024 22:16:55 -0800") References: <87ed3h9dt4.fsf@lease-up.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 24 Brumaire an 233 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de l'Orange X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 14 Nov 2024 11:56:06 +0100 Message-ID: <87jzd6ozi1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.40 X-Spam-Score: -3.40 X-Migadu-Queue-Id: 18E5850924 X-Migadu-Scanner: mx13.migadu.com X-TUID: dDNUG7TOlD/4 Hi, Felix Lechner via "Development of GNU Guix and the GNU System distribution." skribis: > Does the GNU Shepherd add entries for shutdowns and reboots to utmp? [1] Nope! This could be done in the start/stop methods of =E2=80=98user-processes=E2= =80=99 in (gnu services base) using the utmpx procedures from (guix build syscalls). Eventually it would be nice to move utmp support in the Shepherd proper, but that entails a bit of code churn (having the utmp API available from Shepherd, etc.). HTH, Ludo=E2=80=99.