From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Thu, 19 Jul 2007 08:58:09 +0000 From: Antonin Message-ID: <1184826458.677171.47750@z24g2000prh.googlegroups.com> Content-Type: text/plain; charset="iso-8859-2" Subject: [9fans] patch for /rc/bin/cpurc Topicbox-Message-UUID: 9599091a-ead2-11e9-9d60-3106f5b1d025 I suggest a small change to /rc/bin/cpurc to allow different configuration of running services on multiple cpu servers: Insert these 4 lines: # cpu-specific startup if(test -d /cfg/$sysname/ service) <-- inserted /bin/bind /cfg/$sysname/service /rc/bin/service <-- inserted if(test -d /cfg/$sysname/ service.auth) <-- inserted /bin/bind /cfg/$sysname/service.auth /rc/bin/service.auth <-- inserted if(test -e /cfg/$sysname/cpurc) . /cfg/$sysname/cpurc Antonin From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60707190828w49dfafemb8648a32407951ef@mail.gmail.com> Date: Thu, 19 Jul 2007 08:28:06 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] patch for /rc/bin/cpurc In-Reply-To: <1184826458.677171.47750@z24g2000prh.googlegroups.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_78343_19779640.1184858886358" References: <1184826458.677171.47750@z24g2000prh.googlegroups.com> Topicbox-Message-UUID: 959ce1e8-ead2-11e9-9d60-3106f5b1d025 ------=_Part_78343_19779640.1184858886358 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Is the "patch" system still working? It's been a while since I looked. On 7/19/07, Antonin wrote: > > I suggest a small change to /rc/bin/cpurc to allow different > configuration of running services on multiple cpu servers: > Insert these 4 lines: > > # cpu-specific startup > if(test -d /cfg/$sysname/ > service) <-- inserted > /bin/bind /cfg/$sysname/service /rc/bin/service > <-- inserted > if(test -d /cfg/$sysname/ > service.auth) <-- inserted > /bin/bind /cfg/$sysname/service.auth /rc/bin/service.auth <-- > inserted > if(test -e /cfg/$sysname/cpurc) > . /cfg/$sysname/cpurc > > > > Antonin > -- - Passage Matthew 5:37: But let your communication be, Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil. ------=_Part_78343_19779640.1184858886358 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Is the "patch" system still working?

It's been a while since I looked.

On 7/19/07, Antonin <antonin.vecera@gmail.com> wrote:
I suggest a small change to /rc/bin/cpurc to allow different
configuration of running services on multiple cpu servers:
Insert these 4 lines:

# cpu-specific startup
if(test -d /cfg/$sysname/
service)                                          <-- inserted
  /bin/bind /cfg/$sysname/service /rc/bin/service
<-- inserted
if(test -d /cfg/$sysname/
service.auth)                                  <-- inserted
  /bin/bind /cfg/$sysname/service.auth /rc/bin/service.auth    <--
inserted
if(test -e /cfg/$sysname/cpurc)
  . /cfg/$sysname/cpurc



Antonin



--
- Passage Matthew 5:37:
   But let your communication be, Yea, yea; Nay, nay: for whatsoever is more than these cometh of evil.
------=_Part_78343_19779640.1184858886358-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4799c65eb8663fa87153808941ade72c@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] patch for /rc/bin/cpurc Date: Thu, 19 Jul 2007 13:15:31 -0400 From: geoff@plan9.bell-labs.com In-Reply-To: <1184826458.677171.47750@z24g2000prh.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 95b184ea-ead2-11e9-9d60-3106f5b1d025 listen calls newns() internally, so changing the namespace by hand doesn't affect it. listen can be given alternate service directories (see listen(8)) and will now ignore zero-length files in the service directories, so binding /dev/null onto files in /bin/service (for example) in /cfg/$sysname/namespace can be used to alter the set of services offered. The patch system is still working. We're a bit behind processing the queue but working on it. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <10b109140707191225y211ebbf6id4f63fccea5232fc@mail.gmail.com> Date: Thu, 19 Jul 2007 21:25:45 +0200 From: "Antonin Vecera" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] patch for /rc/bin/cpurc In-Reply-To: <4799c65eb8663fa87153808941ade72c@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1184826458.677171.47750@z24g2000prh.googlegroups.com> <4799c65eb8663fa87153808941ade72c@plan9.bell-labs.com> Topicbox-Message-UUID: 95c1fc58-ead2-11e9-9d60-3106f5b1d025 On 7/19/07, geoff@plan9.bell-labs.com wrote: > listen calls newns() internally, so changing the namespace by hand > doesn't affect it. listen can be given alternate service directories > (see listen(8)) and will now ignore zero-length files in the service > directories, so binding /dev/null onto files in /bin/service (for > example) in /cfg/$sysname/namespace can be used to alter the set of > services offered. You are right. Better way is to create file /cfg/$sysname/namespace . I didn't know about this option. Thanks. Antonin