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-ob1.topicbox.com (tb-ob1.topicbox.com [64.147.108.173]) by inbox.vuxu.org (Postfix) with ESMTP id 2ACAE254E0 for ; Tue, 5 Mar 2024 22:59:53 +0100 (CET) Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 02B1F22808 for ; Tue, 5 Mar 2024 16:59:52 -0500 (EST) (envelope-from bounce.mM1b1379582bb9751cff6ba2ce.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 27D1CDCA6FA; Tue, 5 Mar 2024 16:59:52 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass 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=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1709675992; bh=DL5ppEm3S66CDmlk nPKczkVZnwffTbuuOh19luIueAI=; b=Y/LXfmNr5e5Kfc6/xzs2UJm+I7qwJN4M fVg4tR3KK7gj3DnuZDNpyCJ/hvFduzBYF5837/Tjn61xr40iPvnBcHuk4/H4w2ln TqD1UTd4omWeAeEPqgZh73knNn2+EerhvcuQ5F86jYO5kqgWCBtAZDWafQWX5kY8 3vqZwqnLYho= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1709675992; b=M3OoAfb0kCtkU+URH4cc3gdXN8ItkOGrsfj2VQB5w9MKo+MRWu VZCCQWHkh86C8J70n7QO0EB7oRmbhGwUCXjwTGJVXN7K+P/kr/+oN0w63pmbsJWg ICkT8p0WjwuJlZjczM0tppnp0+OE1Lk7lrlnqumk90zm4hsMoAJLZ4KLA= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass 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=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass 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=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sirjofri.de policy.ptr=sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1709675991; x=1709762391; bh=DL5ppEm3S66CDmlknPKczkVZnwffTbuu Oh19luIueAI=; b=Bc5pMAmD3KeRcxfk/blgKIlu5dtFEdHdFqxMkTwu820LbalU EgdTuUFywtmGBU0bHvx4R6qYeuDQaAjSx8srY5Znd4IHAsaHDlW+WSctnbzL1u/3 yRYHUpFLM8l2qZJhQZRelxpGwxrXTMFbHqzGxAOGiEdDITcPeo8oXBCAHSA= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id A522710B4E54 for <9fans@9fans.net>; Tue, 5 Mar 2024 16:59:39 -0500 (EST) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 79CE02E67F0; Tue, 5 Mar 2024 16:59:39 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1709675979; b=UQHJjJwou4j8Y8XSkPi9rAnQCJKTSM68xhtxOBXubTFpy7LEZ6 J9JCCBhfBk+bI8MfkRwK2mT64XqeVYAmgJfjqTxb7u1AiidJFQJnHLTjV7K1MjdP crNGAU0glLsvcIhn/fdNTBMS2kNkwQ5P9qzY8M4JetfnC0xcxLXzqh4tW857i/5e ohPVNVCVbVDWMSrVcqHn7aESFjJALJI4OFc/0L6TcDHwStV8N4FivPFKqyq5FO+L g6gOwprqeS3LaAWZpkDqlkJBdOJq2Zpliv5gOjrvKjIR0d8ZE50r43Tn53MQosff tkBBVawwr8EoVfkx6aaJOwiyo7nETfQ5W0Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= arcseal; t=1709675979; bh=wqaaZhZi3q6KceoPd4jjjUR+Bxxovbd/c7wtLx KWgqI=; b=e4M/+z69qtUUIkkqgi54kv4EALYwRIXDdUY09pza/fRwKXRg0W09o5 cu+QFoQBNSftU4dQU4VYd3nQ8eD8uNYPIZhDQmC20SZsq2w17PVR4AEENN7/aPKK VqpsqYgGZ2H2MQ68VDqwIv2dCIgUJLzVbV8lGb6y56iIBRIlET0j90ZcwYC5l8Gq NBrhF9h0yJTj2Uk09XMnMRpQDtG5Tofv1ptrm7ZjjGZQT/pdGC0BvG/w1KVSHhzL RSt9pDdBRUGZparGMIOuW4eadMVv0PTLzT+jiQf28SQIapuAJ2loSDrLXuYFQGDx FvqhWJnpA9yCcGpwaWomD7ewUudOKx3Q== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass 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=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sirjofri.de policy.ptr=sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvledrheelgdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvkf gjfhfugggtgfesthhqredttddtjeenucfhrhhomhepshhirhhjohhfrhhiuceoshhirhhj ohhfrhhiodhmlhdqlehfrghnshesshhirhhjohhfrhhirdguvgeqnecuggftrfgrthhtvg hrnhepvdfguedvgeduudegieefuedtffefhfffhffgfffhgfetvedtvddtfeeigfefieeg necuffhomhgrihhnpeelfhhrohhnthdrohhrghdpghhithhhuhgsrdgtohhmpdhshhhith hhuhgsrdhushenucfkphephedrgeehrddutdehrdduvdejpdefuddrudeirddvheegrdef tdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeehrdeghedrud dthedruddvjedphhgvlhhopehsihhrjhhofhhrihdruggvpdhmrghilhhfrhhomhepoehs ihhrjhhofhhrihdomhhlqdelfhgrnhhssehsihhrjhhofhhrihdruggvqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sirjofri.de: 5.45.105.127 is authorized to use 'sirjofri+ml-9fans@sirjofri.de' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="sirjofri+ml-9fans@sirjofri.de"; helo=sirjofri.de; client-ip=5.45.105.127 Received: from sirjofri.de (sirjofri.de [5.45.105.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Tue, 5 Mar 2024 16:59:38 -0500 (EST) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from dummy.faircode.eu ([31.16.254.30]) by sirjofri.de; Tue Mar 5 22:59:30 +0100 2024 Date: Tue, 5 Mar 2024 22:59:28 +0100 (GMT+01:00) From: sirjofri To: 9fans <9fans@9fans.net> Message-ID: <8ecb415d-7785-4f49-b209-253def72de30@sirjofri.de> In-Reply-To: <878r2w1hsa.fsf@rdklein.fr> References: <87sf1829zy.fsf@rdklein.fr> <878r2w1hsa.fsf@rdklein.fr> Subject: Re: [9fans] Content of your /rc/bin/service or /dis/svc ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <8ecb415d-7785-4f49-b209-253def72de30@sirjofri.de> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: acf7bc6a-db3b-11ee-a7aa-25da088c7b06 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZjczODUxNTAzNDY3MzQ2Zi1NMWIxMzc5NTgyYmI5NzUxY2ZmNmJh?= =?UTF-8?B?MmNlPg==?= 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:M1b1379582bb9751cff6ba2ce:1:vVD04nED3fvN9cG6SfXGEQQ3sxY_vWwQlNhjIJXP9BE 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 scri= pts: > > 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/36478171be59721dcc5252043fe2955cb37fc9b3/rc/bin/= cpurc/f.html ). If you think about how plan 9 should run on a network, imagine a single fs = with many cpu servers all using the same fs. All the configuration is on th= e fs, and the service directories are in the /cfg/machinename/service. The = cpu servers will run their individual configuration automatically using tha= t mechanism. It just makes sense. >> >> 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 eno= ugh 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. >> 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, bu= t 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 case.= I can just lc in that directory and immediately see what's relevant and wh= at 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 eas= ier to read, and also probably more stable in case of copying files via dif= ferent filesystem types (like, copying the file to fat32 and back, or even = having a filesystem without executable flags, which often results in all fi= les bein executable). sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf73851503467346f-M1b137= 9582bb9751cff6ba2ce Delivery options: https://9fans.topicbox.com/groups/9fans/subscription