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-ob21.topicbox.com (tb-ob21.topicbox.com [173.228.157.67]) by inbox.vuxu.org (Postfix) with ESMTP id E88E122BF6 for ; Wed, 6 Mar 2024 11:36:22 +0100 (CET) Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob21.topicbox.com (Postfix) with ESMTP id D384335280 for ; Wed, 6 Mar 2024 05:36:19 -0500 (EST) (envelope-from bounce.mMf9cb49da52d37653059fdaa2.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id AF66710D1E6B; Wed, 6 Mar 2024 05:36:19 -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.17; dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=HbmrEXgp 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-o17.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:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1709721379; bh=KxsdfpVgLMYCBaTC aZEi52mIT7kv3esqUiiJvPVOng4=; b=qrv2URof3To2Hn6iVpAimWiOtsv5Tof4 ND02DLsLSKkG9zxAT6PRzlJsFB3eBJ4Xr2xeS1WCQXw1izZXq1bzijdAP/tpylVq 4XLhvXPY+RuL574gCSLKkh6aOsgsmUKd0i7Otqzg9YwM5blOUWj2LTkoPefuCkJ5 OF/5B5IZU40= ARC-Seal: i=3; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1709721379; b=FIM3Yjo848HeDyxnc/fWo3XBvJMk3drTTg/tkvWm5tXiTx/4Xz aZnA6y3D9w0C93JyH7O9c96mw8pNJs163W/qZcScYKIBHTnzX4VZlAXos44AKILK 8ePKZt0QkZytf0z5lIrEDs2LKbFum799/QI7vvIUnuFe0KKRrRIkkep/M= Authentication-Results: topicbox.com; arc=pass (as.1.zohomail.eu=pass, ams.1.zohomail.eu=pass) smtp.remote-ip=136.143.169.17; dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=HbmrEXgp 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-o17.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.17; bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=HbmrEXgp 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.17 (sender-op-o17.zoho.eu); spf=pass smtp.mailfrom=edou@rdklein.fr smtp.helo=sender-op-o17.zoho.eu; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sender-op-o17.zoho.eu policy.ptr=sender-op-o17.zoho.eu; x-return-mx=pass header.domain=rdklein.fr policy.is_org=yes (MX Records found: mx2.zoho.eu,mx3.zoho.eu,mx.zoho.eu); x-return-mx=pass smtp.domain=rdklein.fr policy.is_org=yes (MX Records found: mx2.zoho.eu,mx3.zoho.eu,mx.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:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1709721379; x=1709807779; bh=KxsdfpVgLMYCBaTCaZEi52mIT7kv3esq UiiJvPVOng4=; b=lwMZKvrHHZ8S/xaOYOkE07HGqlFXxvcv55V5LgLV7TAjNuQq ZGCe7G2K7w9ZHbBvOBv/Z9qub2KxOF+F81l5DE/sfUauPMOakvtVY4waJ+G5ZVqq mVHl7erztWhlhgBiL3F9wPtQ9GxW//e+WjNlGFHjOSJzXCYEzTz73b0+YfM= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 3C109ED0AE4 for <9fans@9fans.net>; Wed, 6 Mar 2024 05:36:02 -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 18F437DA85F; Wed, 6 Mar 2024 05:36:02 -0500 ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=arcseal; t= 1709721362; b=ju9GGqRgqh8a55hW/9M0mafzXjMkxhZ6VuzMfRyINng+oK8CAv 36BiWkSkY1LJyHGNZ5eKTjM2Mek0dKaB2rRvnGcF9teFMPxgKn9e7km/2IbtOTid azz9/btKYzqi9yX59EhLSCGkGZHN9n3ZZETBbxc0Bidg5WOuTlFsPSOcxqhZ+bGq oWNFA+Paa9IQyEoIRPV3d+1hjNfK59Pt7MjwKLA4A2yLVJ3A/YsMXp3FxrSwKBqJ 8ssr9OBMRz/bEwKuLrmt+FGCHAZeRLapnOvmpUCyN/VX1+nl+noECb/iHBlYmER4 /rVbzi2zka3WUXKZm5QoqByipBeUBXJMfsSA== 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:content-transfer-encoding; s=arcseal; t=1709721362; bh=nt+aTKjeX78iZ338ppX+P41J0nwWVVT02ir jM+kFs1U=; b=vseWcHT7a9ok3zTpb3YKPYhb+D3Bjhohjzb7rRnXW8jTmmwnyni 6/ZrnoLZDSYRfRBtohVFF7itnsDmyHp59X6tMc4iYMewBGxWq1ucnvXuaebDYA81 SiwiKgwB9kaS/Q9D4ORjvpgszmQWKbWH+WXfqnO+82sMgj5xEOM2nh/7GCvF/txs IKsLbX+lvWaVKW249hOjGg3OtDFeDlmVhvQ/SjUrON4Aw+8T7Np4WGK13gcKkJ78 Xdbod5nedKUWAY+2mDX9VTB8+PfpP9vbSopxP7lZxuYNIRMBwaJWkcpq8H2e+6qM o75+7R8URKg7sJOATDBAdfRaNOdASBbX7cg== 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.17; bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=rdklein.fr header.i=edou@rdklein.fr header.b=HbmrEXgp 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.17 (sender-op-o17.zoho.eu); spf=pass smtp.mailfrom=edou@rdklein.fr smtp.helo=sender-op-o17.zoho.eu; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sender-op-o17.zoho.eu policy.ptr=sender-op-o17.zoho.eu; x-return-mx=pass header.domain=rdklein.fr policy.is_org=yes (MX Records found: mx2.zoho.eu,mx3.zoho.eu,mx.zoho.eu); x-return-mx=pass smtp.domain=rdklein.fr policy.is_org=yes (MX Records found: mx2.zoho.eu,mx3.zoho.eu,mx.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: gggruggvucftvghtrhhoucdtuddrgedvledriedugdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvuf ffjgfkgggtgfesthhqredttderjeenucfhrhhomhepgfguohhurghrugcumfhlvghinhcu oegvughouhesrhgukhhlvghinhdrfhhrqeenucggtffrrghtthgvrhhnpedvtedtgfehte ejveeltedvfeehieethfejkeeuteevvdeludfgjeejgffftdehveenucffohhmrghinhep lehfrhhonhhtrdhorhhgpdhgihhthhhusgdrtghomhdpshhhihhthhhusgdruhhspdhtoh hpihgtsghogidrtghomhenucfkphepudefiedrudegfedrudeiledrudejpdekiedrvdeh vddrvdefjedrvdeggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvg htpedufeeirddugeefrdduieelrddujedphhgvlhhopehsvghnuggvrhdqohhpqdhoudej rdiiohhhohdrvghupdhmrghilhhfrhhomhepoegvughouhesrhgukhhlvghinhdrfhhrqe 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-o17.zoho.eu; client-ip=136.143.169.17 Received: from sender-op-o17.zoho.eu (sender-op-o17.zoho.eu [136.143.169.17]) (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>; Wed, 6 Mar 2024 05:35:58 -0500 (EST) (envelope-from edou@rdklein.fr) ARC-Seal: i=1; a=rsa-sha256; t=1709721356; cv=none; d=zohomail.eu; s=zohoarc; b=U/38gwyCUerBqdb6XoLRPo9JWeYzVMmlDg5in1FoqpV4WJSSMotNq1y1inESMddeMLUdi8TkawAYboSG0BdDHaUMb0f3qb5yFrm82ILfRXCsJt09iWX8w0kVSEj04s1Afg8sL7G9yIZVsc7FVTmB4eNvqcVt21JibZrD9hrWlJM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1709721356; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=nt+aTKjeX78iZ338ppX+P41J0nwWVVT02irjM+kFs1U=; b=GIt2CyzFsvvbqxxH3y+L2lZGrT5yhI1i0NWUD3SArJBHFp2z5Zcr99qX1iLQRnwQajfymcXOZzRLAlYgjHQRWH9EHWq7egWJCV0S6UUCGFE8H7ZRazGDYmZdjLdB+MmrwyQbNHHWZysdugSuHUs01C/7z6bCIaS4xdKHzQddIqQ= 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 1709721353560478.07977708510236; Wed, 6 Mar 2024 11:35:53 +0100 (CET) References: <87sf1829zy.fsf@rdklein.fr> <878r2w1hsa.fsf@rdklein.fr> <8ecb415d-7785-4f49-b209-253def72de30@sirjofri.de> 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: Wed, 06 Mar 2024 11:28:47 +0100 In-reply-to: <8ecb415d-7785-4f49-b209-253def72de30@sirjofri.de> Message-ID: <874jdj1wcf.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 5853dada-dba5-11ee-af16-95b8f3e381ce Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZjczODUxNTAzNDY3MzQ2Zi1NZjljYjQ5ZGE1MmQzNzY1MzA1OWZk?= =?UTF-8?B?YWEyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mf9cb49da52d37653059fdaa2:1:hI_gnBFtfFUFO6RRv4iD-EDRNC-0sTl3Srr16jS-T8k sirjofri writes: > Hi, > > 05.03.2024 22:38:59 Edouard Klein : > >> Hi, >> >> Thank you for your answer. >> >> >> sirjofri writes: >> >>> Hello, >>> >>> I don't use /rc/bin/service anymore, but I use /cfg/machinename/service= instead. My contents are copies of what's in /rc/bin/service or my own scr= ipts: >> >> I assume that you then bind-mount /cfg/machinename/service to that >> machine's /rc/bin/service ? > > Nope, because bind would only change my own namespace (or I have to bind = it becore aux/listen starts). > > In fact, it's much easier. I don't know if it's a 9front feature or if it= 's also > in plan 9, but if there is a /cfg/$sysname/service directory it will use = that > instead of /rc/bin/service (see the cpurc file, > https://git.9front.org/plan9front/plan9front/36478171be59721dcc5252043fe2= 955cb37fc9b3/rc/bin/cpurc/f.html > ). > Thanks, I had missed it because there is no /cfg in the source. Do you happen to know how the /cfg dir is first populated during install ? Is it all hand-written by the user ? > > If you think about how plan 9 should run on a network, imagine a single f= s with > many cpu servers all using the same fs. All the configuration is on the f= s, and > the service directories are in the /cfg/machinename/service. The cpu serv= ers > will run their individual configuration automatically using that mechanis= m. It > just makes sense. > Indeed it does. >>> >>> tcp80 - web server >>> tcp443 - web server but wrapped in tls >>> ... >>> >>> I have some cifd running, some irc server that translates to grid chat,= my mail >>> server (smtp and imap4), and fingerd, the files follow the usual scheme= tcpXXX. >>> I probably missed one service or the other, but aux/listen is simple en= ough 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. > > Sure, here it is: > > https://shithub.us/sirjofri/fingerd/HEAD/info.html > > Note that I got some notice of potential .. path issues and I'm not sure = if I > fixed that, but just in case, you might want to fix that (and maybe send = me a > patch). Fix could be as easy as a newns or what it is in C. > I'll try to compile it on Linux and will let you know :) >>> If you have exact questions about aux/listen functionality or you don't= understand 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. > > There might be some difference, maybe with log redirectors or something, = but I > don't know about that. I guess someone else can tell us more about this (= and the > following topic, which is very similar) > >> - I noticed Inferno makes great use of servers that speak 9P on their >> =C2=A0 stdstream, with its >> =C2=A0 mount {some-program} /mnt/toto >> =C2=A0 These programs are trivial to expose thanks to listen: >> =C2=A0=C2=A0 listen -v 'tcp!*!toto' {some-program&} >> =C2=A0 On Plan9, I ran into rc's cmd <[0=3D1] | echo 0 > /srv/name, then= mount >> =C2=A0 /srv/name /n/toto. >> =C2=A0 - Is there a inferno-like shorthand for Plan 9 ? >> =C2=A0 - Why the "echo 0" ? (I'm not familiar with rc). >> >>> Btw it's quite common to "deactivate" services by renaming the files to= have 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. > > I think that _would_ work, but I think it's about readability in this cas= e. I > can just lc in that directory and immediately see what's relevant and wha= t not. > With executable flag I have to run ls -l to see what's executable, and it= 's also > harder to parse it (sorting and filtering). A simple ! is easier to read,= and > also probably more stable in case of copying files via different filesyst= em > types (like, copying the file to fat32 and back, or even having a filesys= tem > without executable flags, which often results in all files bein executabl= e). > Thanks for all this info ! >=20 > sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf73851503467346f-Mf9cb4= 9da52d37653059fdaa2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription