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 ms1.migadu.com with LMTPS id +A73JKwJHGbCLwAAe85BDQ:P1 (envelope-from ) for ; Sun, 14 Apr 2024 18:51:56 +0200 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 +A73JKwJHGbCLwAAe85BDQ (envelope-from ) for ; Sun, 14 Apr 2024 18:51:56 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=RTpxv21Y; 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=1713113516; a=rsa-sha256; cv=none; b=fFir38ooyMS1qgtujR5Oa5ba4VD7KUjEih7VgWRiu3nS4iIC6p7CTFft5IIalUjSHUYExF tKpRcpmY7MimdOC87kNogPh4/86uH+LWPimT8zonDKYmIvxfC8Ub/b5KWR7jEQRpAz+STb 6a7kFewWK+2PN3iPh44kZ620UsqgtfgbyXs4nFOzZOAblS6gR3tG+J8Wn7zwEvtTynyYxx 7lNLT6MnLLoYbggJ6csT6lJ+UiFJxUSd6V/r/JxxLXyGyVF0qtYt2RDQxjBapY+TeDVQRU +JC7rANihwWilFDeQXNfOusAtf+VHkhUnFar1rkuC7cJ1Lv57+0NnN1JBSvYyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=RTpxv21Y; 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=1713113516; h=from:from:sender:sender:reply-to: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=ZMmVyLTy0FCSNgUAfZMlJP5HzSfVT9kW0D0XWEwyZ4g=; b=RCPiT0a23sTeeg8LOSs8XwR6pR5YTLYXwX24BPvAStE6mzah/c9lTq+rxGWQ6slwn8aTlI G2SkO9b6+IXiiMUeHJjGwgIiR3lAm1e+U2BxSrZt4HjhbKusYmV4J1oEfGSSTaPXf3ikWQ IOafZpzHTcHItlBks21HcP+Yb6B1IgMSmgvmGgKhFdCHsPj5eNTfviFJxax/qXbvbvSvn7 eIwsmCOx9/hN6ZLh4Ok68u5EvC0dvtSq4gFQXJlOqtnb5UtYtrKT8PHfUTK0KIooFZ52r8 fzGv00KSR0las9aBDLlpZw3O72YwRLAPogyMPn6So+deKE0kq+W5zGNZW+3O6w== 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 86CF673F7E for ; Sun, 14 Apr 2024 18:51:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw34o-00028O-Sz; Sun, 14 Apr 2024 12:51:35 -0400 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 1rw34k-000280-D4; Sun, 14 Apr 2024 12:51:30 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rw34g-0002Pz-O4; Sun, 14 Apr 2024 12:51:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=/7XJ4P2GnimS5k3 vroDrESH4WUCUBtKeoPrAbte56kw=; h=date:references:in-reply-to:subject: cc:to:from; d=lease-up.com; b=RTpxv21YpXIj8lYgsROk6LY77LbWsWtM0IJ6VgTK zwDBOr+j2G6F0pS6VSGjQWeIyMot20qSyli9SdLsvxTnsQKl0aBV7VpPGR8jCQvoIiJmFa mQNSwU3N3/NxLZQ5hzN8AfuktDWffixmUesTajUxBP+/LOnVJQ3sD8WbNcseY= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id a9850f85 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 14 Apr 2024 16:51:22 +0000 (UTC) To: Ludovic =?utf-8?Q?Court=C3=A8s?= , "Nicolas Graves via Development of GNU Guix and the GNU System distribution." Cc: emacs-devel@gnu.org, Nicolas Graves , Andrew Tropin , Stefan Monnier Subject: Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file In-Reply-To: <87jzl22u5w.fsf@gnu.org> References: <20240410234923.29319-2-ngraves@ngraves.fr> <875xwotg35.fsf@trop.in> <87zfu0m9ps.fsf@ngraves.fr> <87jzl22u5w.fsf@gnu.org> Date: Sun, 14 Apr 2024 09:51:21 -0700 Message-ID: <87sezn28hi.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." 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-Spam-Score: -4.20 X-Migadu-Queue-Id: 86CF673F7E X-Migadu-Spam-Score: -4.20 X-Migadu-Scanner: mx10.migadu.com X-TUID: mx7/86Ueu9U9 Hi Nicolas, On Fri, Apr 12 2024, Ludovic Court=C3=A8s wrote: > Emacs supports systemd-style socket activation so, instead of using a > PID file, you could use =E2=80=98make-systemd-constructor=E2=80=99. Ludo' may have meant to write "Shepherd" instead of Emacs. Here are a few examples for how you might use that beautiful constructor. [1][2][3] Alas, I don't much like the name, which refers to the true daemon called systemd. Instead I would prefer "make-socket-listener-constructor" or similar. Kind regards Felix [1] https://codeberg.org/lechner/system-config/src/commit/db9edb46caf36fe15= bc6f8abc5d1df184b6d5c5f/host/wallace-server/operating-system.scm#L958-L987 [2] https://codeberg.org/lechner/system-config/src/commit/db9edb46caf36fe15= bc6f8abc5d1df184b6d5c5f/host/wallace-server/operating-system.scm#L989-L1018 [3] https://codeberg.org/lechner/system-config/src/commit/db9edb46caf36fe15= bc6f8abc5d1df184b6d5c5f/host/wallace-server/operating-system.scm#L1020-L1047