From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cNH+D47XNWdeYQEAe85BDQ:P1 (envelope-from ) for ; Thu, 14 Nov 2024 10:57:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id cNH+D47XNWdeYQEAe85BDQ (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=SAZ2JK+i; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731581838; a=rsa-sha256; cv=none; b=eBh2xc/WL3JHY3EX7jKDhNL3JY4RbnkBJCzCs7yJXVdvwCzC4Lqar2Z2pSgmMyqPvfi8HP AkGvz+ubVNk+qy7p/sc9lzAsjJdi+r3CEjmNrj/sCgAw/TuZi52KCRsjEP+U72GUhrGYik XHKUxqZo6p0iu2Jes3KUu5MUrFSqmNc5oZRzGDCzThA8fKVRzdRZVWpm8WGP4UMsyTtfcc GbIfcYcIxJyWAkw/bNXIeKV8wTP6GoPz7q6TXKez2/X6Of+Nu6+4NnLmu5eqZr17dChDG/ +Y6WInW73wCKtF+nUVzGJ6lrZvFN+aifh3EPKCZhN2qVka1CgFfsm9d4FFokiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=SAZ2JK+i; dmarc=pass (policy=none) header.from=gnu.org; 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" 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=UwqP1N9PefIxiZs9DnGScA7apV0o37ECbcnq2C3RWrJIk2Mp9REHpC9RIBkfuYUY6PIH2/ omC54BzmWOqLLUlDrHH1+RDlw/QbH2abYIsIdvNp88QoPaVSzGdSOwwba4bSMAcGKl+f0H dGK6RjUw85xGxpnA5WG8fL6Iwj7MJKCJiqi6XOJfRDOUHflVM1t/Ctw8k+DD/GYQ5jI2D5 LjkQaKiLbRBNHA6j97LZ7zXeJ5w0gUn43vnBy/PWQn9EbIq4TRp2EJt3uqToo6VXEBJ1+d aMKdb0AxPTLwxTlJwVVRnawrRg91Xs6r+1oRAiaV3shlklnmpO0MYtNC7lW/6Q== 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 EE55D78788 for ; Thu, 14 Nov 2024 11:57:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBXWr-00019n-4Z; Thu, 14 Nov 2024 05:56:49 -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 1tBXWp-00019Y-J8 for guix-devel@gnu.org; Thu, 14 Nov 2024 05:56:47 -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 1tBXWp-0006Rg-81; Thu, 14 Nov 2024 05:56:47 -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=SAZ2JK+i3eEVxE0hrmeo pqYS1QAOqXbvD9ATWG80FBjzJllH2Dv/4olg92UcsQegElh3/Lu5QgQnSJGG/Kh2dMscnISubwEN+ FI2Yz5jyNBaT9cw5oSq4mV7iAJTA+xIvbqcYPgFBtlv7iDwJqoU4qeBaMlGJWY1iQxNuOukn2i5LU VNghvrCUcPG8hRBTNBptALBwiGNa2Rfgo3M88OuJenjTZAkOOr47n1vNq+PHjErasHumelSk81EDc MA/TvdVTJeMBGLx1PeugQs/b+XKtTeHbY4URbHDso+CnOzOb8zUwRvdVFtNQI3DuIf6NDzRVQuzSW L4DocZ++1sQubg==; 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> User-Agent: Gnus/5.13 (Gnus v5.13) 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:45 +0100 Message-ID: <87iksqozgy.fsf@gnu.org> 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.10 X-Spam-Score: -4.10 X-Migadu-Queue-Id: EE55D78788 X-Migadu-Scanner: mx10.migadu.com X-TUID: 4LpWQmWsZDIB 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.