* [9fans] patch for /rc/bin/cpurc
@ 2007-07-19 8:58 Antonin
2007-07-19 15:28 ` David Leimbach
2007-07-19 17:15 ` geoff
0 siblings, 2 replies; 4+ messages in thread
From: Antonin @ 2007-07-19 8:58 UTC (permalink / raw)
To: 9fans
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] patch for /rc/bin/cpurc
2007-07-19 8:58 [9fans] patch for /rc/bin/cpurc Antonin
@ 2007-07-19 15:28 ` David Leimbach
2007-07-19 17:15 ` geoff
1 sibling, 0 replies; 4+ messages in thread
From: David Leimbach @ 2007-07-19 15:28 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 878 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1684 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] patch for /rc/bin/cpurc
2007-07-19 8:58 [9fans] patch for /rc/bin/cpurc Antonin
2007-07-19 15:28 ` David Leimbach
@ 2007-07-19 17:15 ` geoff
2007-07-19 19:25 ` Antonin Vecera
1 sibling, 1 reply; 4+ messages in thread
From: geoff @ 2007-07-19 17:15 UTC (permalink / raw)
To: 9fans
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] patch for /rc/bin/cpurc
2007-07-19 17:15 ` geoff
@ 2007-07-19 19:25 ` Antonin Vecera
0 siblings, 0 replies; 4+ messages in thread
From: Antonin Vecera @ 2007-07-19 19:25 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 7/19/07, geoff@plan9.bell-labs.com <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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-19 19:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-19 8:58 [9fans] patch for /rc/bin/cpurc Antonin
2007-07-19 15:28 ` David Leimbach
2007-07-19 17:15 ` geoff
2007-07-19 19:25 ` Antonin Vecera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).