From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eK9eH+VHG2L2ewAAgWs5BA (envelope-from ) for ; Sun, 27 Feb 2022 10:44:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uDP4G+VHG2JJugAAauVa8A (envelope-from ) for ; Sun, 27 Feb 2022 10:44:05 +0100 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 477C53D519 for ; Sun, 27 Feb 2022 10:44:05 +0100 (CET) Received: from localhost ([::1]:36892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOG60-0004bT-EZ for larch@yhetil.org; Sun, 27 Feb 2022 04:44:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOG5B-0004am-O4 for guix-devel@gnu.org; Sun, 27 Feb 2022 04:43:13 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOG59-0007z1-Tc for guix-devel@gnu.org; Sun, 27 Feb 2022 04:43:13 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1645954986; cv=none; d=zohomail.com; s=zohoarc; b=FVMpOcuLdNo4bSwG52LCwipWIT0esOjek9WIV8G/LJqhLq3fzo6BjlgTAR3wUM9m9UVTpghREGjXPOPN2NT7hM7+UmgPJqzPHnTeoMOHvToAUK4FQdj1cz00PG/4e8qNWpnrClXyR1B7RpTF1xJBI8kogQ8EL1avaDDpEsRvSB8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1645954986; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=UOn+CFOVBMq75C5OYbLWbrq7ujn9tvvQaX0IAkgai00=; b=h064q0AEgrtjMUosZfBZS31Me4EhYNnL7ln5bI6jIQmzyzYSp/HeLhLMuSi2sCjxvNqYCzKPPVp7EyV5ZyoFfwL5OknQuZAXJTzP/3t5hTQ76nMlUHbSEB1E6I2qKgRLNAcwuNvQip7undG+f+Rh8f9BVrymQp3JHM0zw+c5/aM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1645954986; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=UOn+CFOVBMq75C5OYbLWbrq7ujn9tvvQaX0IAkgai00=; b=hMFG8ekT+224JQCtYOF8NCLxcn+r0vLfAhh7Jrlj/2HanAiy0G8HmhsMxYIxonDa WB7JMsfWBa1l/8+FQdoBdnuue23+6ElSRD3ddk3CYym8SHp+PXAm6zHLVEsEpdbSXNi J6zC7wQFFqR6ZG9W9BurNTCzF4fGh2JXOrSNJQVA= Received: from localhost (p508e8549.dip0.t-ipconnect.de [80.142.133.73]) by mx.zohomail.com with SMTPS id 1645954980819871.1461253754857; Sun, 27 Feb 2022 01:43:00 -0800 (PST) References: <1900053703.146350.1645935647770@office.mailbox.org> User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: Brendan Tildesley Subject: Shepherd socket activation Date: Sun, 27 Feb 2022 10:32:44 +0100 In-reply-to: <1900053703.146350.1645935647770@office.mailbox.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87h78k7ihr.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645955045; 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=UOn+CFOVBMq75C5OYbLWbrq7ujn9tvvQaX0IAkgai00=; b=AM+W6+CYNuTHnDZSwkPJvuOLMc/3nz3jGHNJ4PNaTMHDPIQHL+S1AkWuNuBkjjNNhlsJzh 4nbUpBywPmQGgGkxgGvqDolCjbe/wXDEjisNuUhWipX7snlU63ncriwfnvkVvEfD6/2chN BlzLEl/SW6k/3v4f3orr6RBE5C0bJOzAOY/T1H/2MfN0CS+EX98QXh29dZFeeMYQRHBlFO tZnZkjSioLTQ0WzTxrDAts3mJ09tmzKmTiSj8UxZmctDktG+3fkURMVmaHBbin9ID6h8Zw uWv98bulhrF0mCAC51ccfhLDwHAUKCsuC/CH45MR8IhDLXWhlCKxKnAikAZ+sA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1645955045; a=rsa-sha256; cv=pass; b=U6l73JzZNnHPv0TcSPLrx/4zEBYMRisPDu4R15kfflUb9cJ3maAF2HBUVYUlqHyTHJgytM 42c/rWJnaC3p3/0fB2uSsfJwCqSxRbdut1aVeOt/BGxhrEDJW9tfiGEqu7WUxeMJiaROri luB9C3lmlJGgAsm5Xw/KoxkdIVSGTELKSpJBXKqcDFJyzWCcthhE1Ndh+MzF9YFkNq5usX QizOz8j7SxpfDmPc+28VjIeGqOFbSy4DbznkS2f4LKYktIw8Kr0KHMOx2+NroSvK6dTHHK akcg7FtWKvwUrHXhkGqo0jI4lgapMacF0+MnT/QL49Ce7AFiQFUIJLfVxxa1mg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=hMFG8ekT; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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" X-Migadu-Spam-Score: -7.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=hMFG8ekT; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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" X-Migadu-Queue-Id: 477C53D519 X-Spam-Score: -7.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: fhJdSBGqwhzB Brendan Tildesley writes: > I'll have another go at making the Pipewire service soon. The last > issue I ran into is that since Guix doesn't use systemd, there is > no socket activation support that Pipewire can use, so I wasn't sure > how to launch it. We can add socket activation in its simplest form to Shepherd. Shepherd will only have to create socket files and listen for activity; on activity it starts an associated service. We don=E2=80=99t need to have it= pass sockets or do anything fancy. I=E2=80=99m not a fan of how systemd uses only conventions to associate the socket service with the service that should be activated. In the Shepherd we could define a separate one-shot service that creates the socket (and has Shepherd listen on it), which names other services that would be activated by activity on the socket. --=20 Ricardo