patch for /rc/bin/cpurc - Plan9

This is a discussion on patch for /rc/bin/cpurc - Plan9 ; 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) /bin/bind /cfg/$sysname/service /rc/bin/service if(test -d /cfg/$sysname/ service.auth) /bin/bind /cfg/$sysname/service.auth /rc/bin/service.auth inserted ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: patch for /rc/bin/cpurc

  1. patch for /rc/bin/cpurc

    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

  2. Re: [9fans] patch for /rc/bin/cpurc

    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.


  3. Re: [9fans] patch for /rc/bin/cpurc

    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.


  4. Re: [9fans] patch for /rc/bin/cpurc

    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

+ Reply to Thread