From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob0.topicbox.com (tb-ob0.topicbox.com [64.147.108.117]) by inbox.vuxu.org (Postfix) with ESMTP id 3B8112915C for ; Tue, 5 Mar 2024 22:38:40 +0100 (CET) Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id D9FEA255A0 for ; Tue, 5 Mar 2024 16:38:39 -0500 (EST) (envelope-from bounce.mMaa2def04fcfcb1e92523c45d.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id D707010B422C; Tue, 5 Mar 2024 16:38:39 -0500 (EST) ARC-Authentication-Results: i=3; topicbox.com; arc=pass (as.1.zohomail.eu=pass, ams.1.zohomail.eu=pass) smtp.remote-ip=136.143.169.18; dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=bnQM5jhG header.a=rsa-sha256 header.s=zoho x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr smtp.helo=sender-op-o18.zoho.eu; x-internal-arc=fail (as.2.topicbox.com=pass, ams.2.topicbox.com=fail (message has been altered), as.1.zohomail.eu=pass, ams.1.zohomail.eu=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=references:from:to:subject:date:in-reply-to :message-id:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1709674719; bh=K0wEFuROwHYOffZk PpPx/9j3Qwf2PJILjPvoOiFeaZs=; b=SyE7gC46lDuGl3XASqp1vzLM5NBXw3nP ZHLbCwZQR5JIDUJ3Av+yX71adh15srNASp2Gr0yiITylnHBoFaplqAwaJkATnA4r 2+MdXqqBg4tQPTA77uYFMhED5z5PEvBWrup56XqQ7s7tY+XcOAkje0eWb2Bvzf6x oo+msye+qjY= ARC-Seal: i=3; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1709674719; b=L7BvSsGFWTviwEgUvIhMil/qLaCVfQ41hJb08CJqcN9Zm7CbD/ fHXNaioklSqdqsl6NKBJUPmy65BSPO1DjQLzNF+WjK5kJCpFrZbXtYSjB3Ko+83m Xjyqj3XYkml5zjR+8UydvGkXqRijbU9Do7MOex3LOQkPgsbP1G43kyvXY= Authentication-Results: topicbox.com; arc=pass (as.1.zohomail.eu=pass, ams.1.zohomail.eu=pass) smtp.remote-ip=136.143.169.18; dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=bnQM5jhG header.a=rsa-sha256 header.s=zoho x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr smtp.helo=sender-op-o18.zoho.eu; x-internal-arc=fail (as.2.topicbox.com=pass, ams.2.topicbox.com=fail (message has been altered), as.1.zohomail.eu=pass, ams.1.zohomail.eu=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=pass (as.1.zohomail.eu=pass, ams.1.zohomail.eu=pass) smtp.remote-ip=136.143.169.18; bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=bnQM5jhG header.a=rsa-sha256 header.s=zoho x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=rdklein.fr; iprev=pass smtp.remote-ip=136.143.169.18 (sender-op-o18.zoho.eu); spf=pass smtp.mailfrom=edou@rdklein.fr smtp.helo=sender-op-o18.zoho.eu; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sender-op-o18.zoho.eu policy.ptr=sender-op-o18.zoho.eu; x-return-mx=pass header.domain=rdklein.fr policy.is_org=yes (MX Records found: mx.zoho.eu,mx2.zoho.eu,mx3.zoho.eu); x-return-mx=pass smtp.domain=rdklein.fr policy.is_org=yes (MX Records found: mx.zoho.eu,mx2.zoho.eu,mx3.zoho.eu); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=references :from:to:subject:date:in-reply-to:message-id:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1709674719; x=1709761119; bh=h6Yu3fXk1NpFH8M6vnsi1BDPgn7hpa/I wE3JNT4lb60=; b=NsybjTUvTar8C3opc8HbGwSFy+mJ/KSOPJxdwFPP8kWdXtPu GvO+kr00BiS9VHold24k8UEiMf2YOhmJctSMd6m6xKQ50YHtjYlK4I6UUCzX2jl4 XmnnMuIgUmcQpJ89WJ+wFazdz+NTJM0vObqGMQHVRkEXl2akjMW0HXJPC0E= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 9C9FBDCA174 for <9fans@9fans.net>; Tue, 5 Mar 2024 16:38:13 -0500 (EST) (envelope-from edou@rdklein.fr) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id A83686F6D35; Tue, 5 Mar 2024 16:38:13 -0500 ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=arcseal; t= 1709674693; b=hNbkT5oSz7jpTHk6l1ABUyx7b5QxnKPWpainKPlKwW15Oc20mc obXi48Wykr+LFYxrw3O0Hy5ezjSF1U3dlkROl7oT3Lp0F3x64Hv7euHV+uMIhTQE HJ+ow4RSLEYCPg0QpA4ipIY25b9SpxW+IXKnf023F0bZeglysCP5NSarS5tmEZr+ clbeBKS1VgmTPV2JXYVrJ7ViABbIGUsAcxRDg877YSHAIneXz/zjrRKQAEP8i6qn tv9mSu0u8McXhEn3XbBQKx1Qe+txg3pjlMk1fCIkT6UFc35xnu+WDrDcPs0UsriW NJxC7D7BxJoZugg9OQJJxS0EPxxAzM2vvdzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=references:from:to:subject:date:in-reply-to :message-id:mime-version:content-type; s=arcseal; t=1709674693; bh=I8/dxiW6PoFyrnNprT5cfbwsFJ13XDDLVXTRuaovcXE=; b=ElDGUK1qrrUz Z/NkvZ+7lgLvEUwA6ILdkt6+nkKBqX5lBUYtzru/nQHNvd1AVsohAWochB3KfnAf btHE7yFonPG8rlJkJhprNrQFMe26GyjfgXz6aJjkSWAG3K5JoX/15CQfZatW1wVB GXvTnaLs0Jzltm99v8wfaCwZHP0Y/CznvLF9BOcitDC8RyhYM7VgiwlwAfZbeNF1 REPdBBB0tbL+BQpxdeMVkZ971kbd+itk54YFCTOkMhWQuZpukK5uCgKF75h8Q2VU NNifsoHgTLljr4O1GfWNG2rrTI89R1nD5W6r8Jr2/4WEkcxTOpsYOU3rhtSR0yKH qfwFClzv3Q== ARC-Authentication-Results: i=2; tb-mx1.topicbox.com; arc=pass (as.1.zohomail.eu=pass, ams.1.zohomail.eu=pass) smtp.remote-ip=136.143.169.18; bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=bnQM5jhG header.a=rsa-sha256 header.s=zoho x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=rdklein.fr; iprev=pass smtp.remote-ip=136.143.169.18 (sender-op-o18.zoho.eu); spf=pass smtp.mailfrom=edou@rdklein.fr smtp.helo=sender-op-o18.zoho.eu; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sender-op-o18.zoho.eu policy.ptr=sender-op-o18.zoho.eu; x-return-mx=pass header.domain=rdklein.fr policy.is_org=yes (MX Records found: mx.zoho.eu,mx2.zoho.eu,mx3.zoho.eu); x-return-mx=pass smtp.domain=rdklein.fr policy.is_org=yes (MX Records found: mx.zoho.eu,mx2.zoho.eu,mx3.zoho.eu); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvledrheelgddugeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvf fuffgjkfggtgesthdtredttdertdenucfhrhhomhepgfguohhurghrugcumfhlvghinhcu oegvughouhesrhgukhhlvghinhdrfhhrqeenucggtffrrghtthgvrhhnpeefueffffevud ffudetvedvueetgeekuefhkeefueevuefgffevtddthffffffghfenucffohhmrghinhep ghhithhhuhgsrdgtohhmpdhtohhpihgtsghogidrtghomhenucfkphepudefiedrudegfe drudeiledrudekpdekiedrvdehvddrvdefjedrvdeggeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepihhnvghtpedufeeirddugeefrdduieelrddukedphhgvlhhope hsvghnuggvrhdqohhpqdhoudekrdiiohhhohdrvghupdhmrghilhhfrhhomhepoegvugho uhesrhgukhhlvghinhdrfhhrqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (rdklein.fr: Sender is authorized to use 'edou@rdklein.fr' in 'mfrom' identity (mechanism 'include:zoho.eu' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="edou@rdklein.fr"; helo=sender-op-o18.zoho.eu; client-ip=136.143.169.18 Received: from sender-op-o18.zoho.eu (sender-op-o18.zoho.eu [136.143.169.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Tue, 5 Mar 2024 16:38:11 -0500 (EST) (envelope-from edou@rdklein.fr) ARC-Seal: i=1; a=rsa-sha256; t=1709674688; cv=none; d=zohomail.eu; s=zohoarc; b=ZUTpyymdShUwULpyOMz7760K2FfjTlrt/foYbqrqLAvA+YqOZYHBXlqDqCr79FYWBGim12JGKPCV+DmyYjqE+V2snEr2Vt3F8myyMCYM2eiNgJOmYA7srCRGVYFi53TpsjyMzLoalHd93KNhIqqnm8lnjm1NwO9ICj3KMTxLPEE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1709674688; h=Content-Type:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=I8/dxiW6PoFyrnNprT5cfbwsFJ13XDDLVXTRuaovcXE=; b=XfAvDnwTjgTuWUnUV+mRaIdMnkVPEzfta1ZXezOdHUnRnEFnOBltGR+o7U8LodBeBwOcisp5km8aYyIdtGHbGTc+QSTfHUAbmxM5TtOATEWXQslj/sPZeOlp1dHM4l3KmXQ8VdSHM50MKcIlCTcX2Z7Si7KFr2SrIQ6omohZt1I= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= Received: from schwarzy (lfbn-idf3-1-667-244.w86-252.abo.wanadoo.fr [86.252.237.244]) by mx.zoho.eu with SMTPS id 1709674685318275.11781896811806; Tue, 5 Mar 2024 22:38:05 +0100 (CET) References: <87sf1829zy.fsf@rdklein.fr> User-agent: mu4e 1.10.2; emacs 28.2 From: Edouard Klein To: 9fans@9fans.net Subject: Re: [9fans] Content of your /rc/bin/service or /dis/svc ? Date: Tue, 05 Mar 2024 22:28:01 +0100 In-reply-to: Message-ID: <878r2w1hsa.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-ZohoMailClient: External Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: ae8be3f6-db38-11ee-a073-f778aebcec19 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZjczODUxNTAzNDY3MzQ2Zi1NYWEyZGVmMDRmY2ZjYjFlOTI1MjNj?= =?UTF-8?B?NDVkPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Maa2def04fcfcb1e92523c45d:1:ovkWdD0puheHOWEGD3CTyvFI9Tc0s-DkUZlSV7aWn1E Hi, Thank you for your answer. sirjofri writes: > Hello, > > I don't use /rc/bin/service anymore, but I use /cfg/machinename/service i= nstead. My contents are copies of what's in /rc/bin/service or my own scrip= ts: I assume that you then bind-mount /cfg/machinename/service to that machine's /rc/bin/service ? > > tcp80 - web server > tcp443 - web server but wrapped in tls > ... > > I have some cifd running, some irc server that translates to grid chat, m= y mail > server (smtp and imap4), and fingerd, the files follow the usual scheme t= cpXXX. > I probably missed one service or the other, but aux/listen is simple enou= gh to > set up custom servers with arbitrary functionality. > Would you mind sharing your fingerd and irc server ? For finger my plan is to turn this one: https://github.com/michael-lazar/finger2020/blob/master/finger2020 into a multi-user version, but if there already is one I won't bother. > If you have exact questions about aux/listen functionality or you don't u= nderstand something, just ask :) > - I noticed some tcpXXX files use exec for their last line, and some don't. Is there a reason ? My understanding is that exec saves one call to fork per connection, and thus it would be best if it was always used. - I noticed Inferno makes great use of servers that speak 9P on their stdstream, with its mount {some-program} /mnt/toto These programs are trivial to expose thanks to listen: listen -v 'tcp!*!toto' {some-program&} On Plan9, I ran into rc's cmd <[0=3D1] | echo 0 > /srv/name, then mount /srv/name /n/toto. - Is there a inferno-like shorthand for Plan 9 ? - Why the "echo 0" ? (I'm not familiar with rc). > Btw it's quite common to "deactivate" services by renaming the files to h= ave a > leading "!". In general, everything that follows the naming scheme > and is executable will work. > why not just chmod -x them ? In a multiuser system, users may not have the right to rename them. Thank you for your help :) Cheers, Edouard. >=20 > sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf73851503467346f-Maa2de= f04fcfcb1e92523c45d Delivery options: https://9fans.topicbox.com/groups/9fans/subscription