9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Re: CPU Server
@ 2007-08-17 11:03 kix
  2007-08-17 11:52 ` Francisco J Ballesteros
  2007-08-17 18:10 ` geoff
  0 siblings, 2 replies; 5+ messages in thread
From: kix @ 2007-08-17 11:03 UTC (permalink / raw)
  To: 9fans

Geoff,

thanks for your time. Probably I am a dummy, but I have tree files:

/rc/bin/cpurc
/rc/bin/cpurc.local
/cfg/example/cpurc

The /rc/bin/cpurc is more complete than /cfg/example/cpurc, and I use it
other times
to create the cpuserver.
Probably is better to create a /cfg/example/cpurc and a
/cfg/example/cpurc.local
(this file do not exist) very complete,
modify them and copy to /rc/bin/cpurc*.

In short, I do not what to do, because if I edit the /cfg/example/cpurc and
overwrite /rc/bin/cpurc, probably I will lost some data.

In the other hand, in the wiki, you can read "dircp /cfg/example to
/cfg/$sysname,
and cd /cfg/$sysname and edit cpurc*"
normally, the $sysname is empty (I do not setup it) and cpurc* is only
cpurc, the
cpurc.local is not in /cfg/example".

Thanks.

kix.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: CPU Server
  2007-08-17 11:03 [9fans] Re: CPU Server kix
@ 2007-08-17 11:52 ` Francisco J Ballesteros
  2007-08-17 11:54   ` Francisco J Ballesteros
  2007-08-17 18:10 ` geoff
  1 sibling, 1 reply; 5+ messages in thread
From: Francisco J Ballesteros @ 2007-08-17 11:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

AFAIK, /rc/bin/cpurc now calls
/cfg/$sysname/cpurc.local
for local setup at $sysname.

Thus, if it's enough for you just to start several custom stuff at $sysname,
just create your
/cfg/$sysname/cpurc.local.

But otherwise, just do what is more simple for your site and does the job.
We still keep a single /bin/cpurc for all our cpu severs and that works fine.
Only that we have to keep an eye on changes made to cpurc in sources just
in case we have to update ours.

hth

On 8/17/07, kix@kix.es <kix@kix.es> wrote:
> Geoff,
>
> thanks for your time. Probably I am a dummy, but I have tree files:
>
> /rc/bin/cpurc
> /rc/bin/cpurc.local
> /cfg/example/cpurc
>
> The /rc/bin/cpurc is more complete than /cfg/example/cpurc, and I use it
> other times
> to create the cpuserver.
> Probably is better to create a /cfg/example/cpurc and a
> /cfg/example/cpurc.local
> (this file do not exist) very complete,
> modify them and copy to /rc/bin/cpurc*.
>
> In short, I do not what to do, because if I edit the /cfg/example/cpurc and
> overwrite /rc/bin/cpurc, probably I will lost some data.
>
> In the other hand, in the wiki, you can read "dircp /cfg/example to
> /cfg/$sysname,
> and cd /cfg/$sysname and edit cpurc*"
> normally, the $sysname is empty (I do not setup it) and cpurc* is only
> cpurc, the
> cpurc.local is not in /cfg/example".
>
> Thanks.
>
> kix.
>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: CPU Server
  2007-08-17 11:52 ` Francisco J Ballesteros
@ 2007-08-17 11:54   ` Francisco J Ballesteros
  0 siblings, 0 replies; 5+ messages in thread
From: Francisco J Ballesteros @ 2007-08-17 11:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Also, you may setup sysname in your plan9.ini. For CPU servers we do that,
so that the machines know at least their names even if we screw things up.

On 8/17/07, Francisco J Ballesteros <nemo@lsub.org> wrote:
> AFAIK, /rc/bin/cpurc now calls
> /cfg/$sysname/cpurc.local
> for local setup at $sysname.
>
> Thus, if it's enough for you just to start several custom stuff at $sysname,
> just create your
> /cfg/$sysname/cpurc.local.
>
> But otherwise, just do what is more simple for your site and does the job.
> We still keep a single /bin/cpurc for all our cpu severs and that works fine.
> Only that we have to keep an eye on changes made to cpurc in sources just
> in case we have to update ours.
>
> hth
>
> On 8/17/07, kix@kix.es <kix@kix.es> wrote:
> > Geoff,
> >
> > thanks for your time. Probably I am a dummy, but I have tree files:
> >
> > /rc/bin/cpurc
> > /rc/bin/cpurc.local
> > /cfg/example/cpurc
> >
> > The /rc/bin/cpurc is more complete than /cfg/example/cpurc, and I use it
> > other times
> > to create the cpuserver.
> > Probably is better to create a /cfg/example/cpurc and a
> > /cfg/example/cpurc.local
> > (this file do not exist) very complete,
> > modify them and copy to /rc/bin/cpurc*.
> >
> > In short, I do not what to do, because if I edit the /cfg/example/cpurc and
> > overwrite /rc/bin/cpurc, probably I will lost some data.
> >
> > In the other hand, in the wiki, you can read "dircp /cfg/example to
> > /cfg/$sysname,
> > and cd /cfg/$sysname and edit cpurc*"
> > normally, the $sysname is empty (I do not setup it) and cpurc* is only
> > cpurc, the
> > cpurc.local is not in /cfg/example".
> >
> > Thanks.
> >
> > kix.
> >
> >
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: CPU Server
  2007-08-17 11:03 [9fans] Re: CPU Server kix
  2007-08-17 11:52 ` Francisco J Ballesteros
@ 2007-08-17 18:10 ` geoff
  2007-08-17 22:40   ` kix
  1 sibling, 1 reply; 5+ messages in thread
From: geoff @ 2007-08-17 18:10 UTC (permalink / raw)
  To: 9fans

You can do things differently, but the way we do them is as follows.
cpurc invokes cpurc.local and /cfg/$sysname/cpurc, where $sysname is
the name of the current cpu server.  We intend that cpurc will be
relatively static, cpurc.local should implement site-wide local policy
(e.g., set cpu and facedom variables, run ipv6on) and
/cfg/$sysname/cpurc should implement machine-specific local policy
(e.g., run cron, httpd, dhcpd or tftpd).

We consider it mandatory to set sysname.  If ndb/cs doesn't do it
(perhaps because your /lib/ndb is imcomplete), you can set it in
plan9.ini.  /n/sources/cfg/example/cpurc is an example cpurc; you
might want to copy it to /cfg/$sysname/cpurc and edit the copy.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: CPU Server
  2007-08-17 18:10 ` geoff
@ 2007-08-17 22:40   ` kix
  0 siblings, 0 replies; 5+ messages in thread
From: kix @ 2007-08-17 22:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Many thanks Geoff and Nemo,

this mail is very good for a newbee. I will check my network
configuration, now I have the sysname in plan9.ini.

I will start my holidays in a few hours, and I will no open my laptop for
a week.

Thanks!!!


> You can do things differently, but the way we do them is as follows.
> cpurc invokes cpurc.local and /cfg/$sysname/cpurc, where $sysname is
> the name of the current cpu server.  We intend that cpurc will be
> relatively static, cpurc.local should implement site-wide local policy
> (e.g., set cpu and facedom variables, run ipv6on) and
> /cfg/$sysname/cpurc should implement machine-specific local policy
> (e.g., run cron, httpd, dhcpd or tftpd).
>
> We consider it mandatory to set sysname.  If ndb/cs doesn't do it
> (perhaps because your /lib/ndb is imcomplete), you can set it in
> plan9.ini.  /n/sources/cfg/example/cpurc is an example cpurc; you
> might want to copy it to /cfg/$sysname/cpurc and edit the copy.
>
>




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-17 22:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-17 11:03 [9fans] Re: CPU Server kix
2007-08-17 11:52 ` Francisco J Ballesteros
2007-08-17 11:54   ` Francisco J Ballesteros
2007-08-17 18:10 ` geoff
2007-08-17 22:40   ` kix

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).