Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Problems with netmsgserver
@ 1995-07-07  4:00 Fernando Bellas Permuy 
  0 siblings, 0 replies; 6+ messages in thread
From: Fernando Bellas Permuy  @ 1995-07-07  4:00 UTC (permalink / raw)


and servers which run in differents computers (linked by a network). I'm
trying to install  "netmsgserver", a name server which it comes with the
standard installation. This server can send messages by the network.

   To install properly "netmsgserver" there are to take into account how
Mach 3.0 works. The "Mach 3.0 Server Writer's Interfaces", appendix C
Service Server, explains very well this point. This handook says:

   Each task inherits a set of registered ports upon creation 
(mach_port_registers). These are (send rights) for the name server, an
environment server and the service server. All tasks in the system are
intented to share the same name server, whereas different groups of tasks may
have private environmet servers.

   All tasks need access to the same name server. Given a task whose 
registered name server port names the name server, all tasks derived from
that task will inherit the port and share access to the name server. 
Unfortunately, being a task itself, the name server intializes itself after
certain other tasks (such as the init process, /etc/init) run. Thus, most
tasks, which derive indirectly from the init task will be missing the name
server (and environmment server) port.

  Because of this, the port for the name server and environment server
must be created (and registered with the init process) before the servers
the ports name exist. This mechanism is provided by the "service" server.

  The privileged "service" server, /mach_servers/mach_init ( in my installation
"mach_init" is not in /mach_servers, it is in /usr/mach3/sbin, is it a 
problem ? ), is run as the first process. It creates the port that will name
the name and environment servers (as well it self) and forcibly registers them
with its parent, thus placing these registered  ports at the root of the task
derivation tree. 

  When the name or environment server is initialized, it registers itself with
the service server, making the port created by the service server it own. Only
the name and environment server have need for the service server.

  In my installation "mach_init" is not run as the first process. In fact, if
you execute "ps -A", you don't see "mach_init". In the directory /sbin/rc3.d,
there is a script to run "netmsgserver" when the operating system starts. The
name of this script is _S90netmsgserver; if I rename it to S90netmsgserver,
when the operating system starts, it tres to run this script, but 
"netmsgserver" fails, because "mach_init" is not run as the first process
(in fact, "mach_init" is not run). Thus, I imagine that the solution to my
problem is to do that "mach_init" is run as the first process, and
rename _S90netmsgserver to S90netmsgserver. Is this correct ? If it is 
correct, how can I run "mach_init" as the first process ?

  I wrote an article to the "news" ( comp.unix.osf.osf1 and 
comp.os.mach ), asking for this question. I recived an answer saying:

--------------------------------------------------------------------------

To get 'netmsgserver' running, the easiest way is to change the nanny
configuration file: (/usr/etc/nanny.config, as under Mach 2.6 MSD)
netmsgserver {
RUNFILE=( )
SCRIPT=( /usr/etc/netmsgserver)
UID=( msgsrv)
GID=( network)
NICE=( 0)
ATTRIBUTES=( mach)
}

This gets the server running and checks whether it keeps running.

-------------------------------------------------------------------------

  This does not work in my installation. In my installation, it does not
exist /usr/etc and the script to run "netmsgserver" is in /sbin/init.d. Thus, 
I wrote the next configuration file (/etc/nanny.config):

netmsgserver {
RUNFILE=( )
SCRIPT=( /sbin/init.d/netmsgserver start)
UID=( msgsrv)
GID=( network)
NICE=( 0)
ATTRIBUTES=( mach)


  This fails again. The "netmsgserver" does not start. The previous 
configuration file does not run "netmsgserver", and if "netmsgserver" would
run, it would fail, because the "mach_init" is not run as the first process.

  Can somebody help me? 

  My e-mail address is: 

               fpermuy@roble.datsi.fi.upm.es

  Thanks in advance,

Fernando. 




^ permalink raw reply	[flat|nested] 6+ messages in thread
* Problems with netmsgserver
@ 1995-08-18  4:00 a880233
  0 siblings, 0 replies; 6+ messages in thread
From: a880233 @ 1995-08-18  4:00 UTC (permalink / raw)



   Hello! I'm trying to install "netmsgserver". If somebody knows
how to install "snames", I think that can help me, because "netmsgserver"
and "snames" need "mach_init" running.

   My computer is a i386, and I'm using OSF/1. The operating system version
is: OSF1 1.2 osc1.2-MK5.0.2 i386.

   I installed "mach_init" in "/mach_servers". In my installation "mach_init"
was in "/sbin" directory. Now the operating system will run "mach_init" when
the machine starts. "mach_init" is the Service Server. Some servers, as
"netmsgserver" or "snames", need this server (see appendix C in
"Mach 3 Server Writer's Guide" for more details). 

   I will show you some important directories:

1. ls -al /mach_servers

drwxr-xr-x   2 root     wheel               512 Jul 20 14:00 .
drwxr-xr-x  13 root     wheel              1024 Aug  7 13:08 ..
-rwxr-xr-x   1 root     wheel            112286 Jul 20 13:00 mach_init
-rwxr-xr-x   1 root     wheel             14889 Apr 19  1993 mem
lrwxrwxrwx   1 root     wheel                15 Feb 14 09:18 paging_file -> /dev/sd0b/space
-rwxr-xr-x   2 root     wheel            929299 Aug 31  1993 startup
-rwxr-xr-x   1 root     wheel            929182 May 12 16:24 vmunix.new
-rwxr-xr-x   2 root     wheel            929299 Aug 31  1993 vmunix.osc1.2-MK5.0.2.PRODUCTION


2. ls -al /etc/init

lrwxrwxrwx   1 root     19                   10 Jul 20 13:06 init -> /sbin/init

3. ls -al /sbin/rc3.d/_S90netmsgserver 
lrwxrwxrwx   1 root     19                   22 Feb 14 09:20 _S90netmsgserver -> ../init.d/netmsgserver


  When I try to install "mach_init", I rename "_S90netmsgserver" to 
"S90netmsgserver", and I boot the machine again.


  After this, the operating system starts in debugger mode, because 
"netmsgserver" fails. "netmsgserver" prints the following error message:

netname_init.netname_check_in fails, kr = -303
Panic: netname_init fails
log dumped

  It seems that "mach_init" did not worked well.

  If I rename "S90netmsgserver" to "_S90netmsgserver", boot the machine, and
type ps -A, the output is:

  PID TTY      STAT        TIME COMMAND
    0 ??               42:29.95 [OSF/1 server]
    1 ??                0:00.15 init -xx
    2 ??                4:49.15 /mach_servers/mach_init -xx
   17 ??                0:00.01 /sbin/cfgmgr -a
   20 ??                0:00.13 /sbin/update
   61 ??                0:00.12 /sbin/syslogd
   66 ??                0:00.05 /sbin/named
   87 ??                0:00.00 /usr/sbin/strerr
   93 ??                0:00.02 /usr/sbin/portmap
   95 ??                0:00.09 /usr/sbin/mountd
   98 ??                0:00.01 -nfsd.udp (nfsd)
   99 ??                0:00.00 -nfsd.udp (nfsd)
  101 ??                0:00.01 -nfsd.udp (nfsd)
  102 ??                0:00.01 -nfsd.udp (nfsd)
  103 ??                0:00.02 -nfsd.tcplistener (nfsd)
  104 ??                0:00.03 /usr/sbin/nfsiod 4
  105 ??                0:00.01 /usr/sbin/nfsiod 4
  107 ??                0:00.00 /usr/sbin/nfsiod 4
  108 ??                0:00.00 /usr/sbin/nfsiod 4
  122 ??                0:00.01 /usr/sbin/inetd
  127 ??                0:00.18 /usr/sbin/cron
  133 ??                0:00.05 -accepting connections (sendmail)
  142 ??                0:00.02 /usr/sbin/writesrv
  148 ??                0:00.04 /usr/sbin/lpd
  153 ??                0:00.06 /usr/bin/X11/xdm -config /usr/lib/X11/xdm/xdm-c
  155 ??                0:00.69 /usr/bin/X11/Xvga -su -config /usr/lib/X11/Xcon
  157 ??                0:00.08 -:0 (xdm)
  173 ??                0:00.08 -gnomo7.fi.upm.es:0 (xdm)
  180 ??                0:00.07 /bin/sh /usr/lib/X11/xdm/Xsession
  184 ??                0:00.21 /usr/bin/X11/twm
  185 ??                0:00.13 xclock -g 50x50-350+0 -bw 0
  186 ??                0:01.64 xterm -geometry 80x24+35+76 -name Shell -sb
  227 ??                0:00.05 -AA00135 postman.gr.osf.org: user (sendmail)
  156 console     +     0:00.14 /usr/sbin/getty console console at386
  187 pts/0             0:00.80 -csh (tcsh)
  195 pts/0             0:01.22 xterm -name poleo2 -sb
  225 pts/0       +     0:00.69 vi carta_1.doc
  196 pts/1             0:01.24 -csh (tcsh)
  245 pts/1       +     0:00.03 ps -A


  You can see that "mach_init" is working, however it seems that does not
work well.

  If I execute the next program:

#include <stdio.h>
#include <mach.h>

void main (void)
{
  if (MACH_PORT_VALID(service_port)==FALSE)
    puts("Problems ...");
}

the output is: "Problems...". "mach_init" didn't work well.

When "netmsgserver" tries to use the Service Server (mach_init) services
fails, because "service_port" does not a corret name port.  


  I hope that this information can help you. 


Thanks in advance,

Fernando (A880233@zipi.fi.upm.es).



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Problems with netmsgserver
@ 1995-08-01  4:00 Fernando Bellas Permuy 
  0 siblings, 0 replies; 6+ messages in thread
From: Fernando Bellas Permuy  @ 1995-08-01  4:00 UTC (permalink / raw)


  I'm working with OSF/1 for i386. My computer is a 486 and the OSF/1 version
is: OSF1 1.2 osc1.2-MK5.0.2 i386. I'm working with Mach 3.0, writing clients
and servers which run in differents computers (linked by a network). I'm
trying to install  "netmsgserver", a name server which it comes with the
standard installation. This server can send messages by the network.

   To install properly "netmsgserver" there are to take into account how
Mach 3.0 works. The "Mach 3.0 Server Writer's Interfaces", appendix C
Service Server, explains very well this point. This handook says:

   Each task inherits a set of registered ports upon creation
(mach_port_registers). These are (send rights) for the name server, an
environment server and the service server. All tasks in the system are
intented to share the same name server, whereas different groups of tasks may
have private environmet servers.

   All tasks need access to the same name server. Given a task whose
registered name server port names the name server, all tasks derived from
that task will inherit the port and share access to the name server.
Unfortunately, being a task itself, the name server intializes itself after
certain other tasks (such as the init process, /etc/init) run. Thus, most
tasks, which derive indirectly from the init task will be missing the name
server (and environmment server) port.

  Because of this, the port for the name server and environment server
must be created (and registered with the init process) before the servers
the ports name exist. This mechanism is provided by the "service" server.

  The privileged server is "mach_init". I installed "mach_init" in
"/mach_servers", and therefore, when the operating system starts, runs
"/mach_init". I did some "ls -l"'s to some important programs:

1.- Let us see "ls -l /etc/init":

lrwxrwxrwx   1 root     19                   10 Jul 20 13:06 /etc/init -> /sbin/
init

2.- "ls -l /sbin/init":

-rwxr-xr-x   1 bin      bin              114866 Dec  7  1992 /sbin/init

3.- "ls -l /mach_servers/mach_init":

-rwxr-xr-x   1 root     wheel            112286 Jul 20 13:00 /mach_servers/mach_
init

  When I start the computer, without typing anything in the "boot:",
"/mach_servers/mach_init" runs. If you type "ps -A", the output is:

  PID TTY      STAT        TIME COMMAND
    0 ??               21:46.55 [OSF/1 server]
    1 ??                0:00.11 init -xx
    2 ??                2:28.22 /mach_servers/mach_init -xx
   17 ??                0:00.01 /sbin/cfgmgr -a
   20 ??                0:00.19 /sbin/update
   61 ??                0:00.01 /sbin/syslogd
   66 ??                0:00.04 /sbin/named
   87 ??                0:00.00 /usr/sbin/strerr
   93 ??                0:00.01 /usr/sbin/portmap
   95 ??                0:00.01 /usr/sbin/mountd
   99 ??                0:00.00 -nfsd.udp (nfsd)
  100 ??                0:00.00 -nfsd.udp (nfsd)
  101 ??                0:00.00 -nfsd.udp (nfsd)
  102 ??                0:00.00 -nfsd.udp (nfsd)
  103 ??                0:00.00 /usr/sbin/nfsiod 4
  104 ??                0:00.01 -nfsd.tcplistener (nfsd)
  105 ??                0:00.01 /usr/sbin/nfsiod 4
  106 ??                0:00.00 /usr/sbin/nfsiod 4
  107 ??                0:00.00 /usr/sbin/nfsiod 4
  123 ??                0:00.01 -accepting connections (sendmail)
  124 ??                0:00.07 /usr/sbin/inetd
  130 ??                0:00.07 /usr/sbin/cron
  142 ??                0:00.02 /usr/sbin/writesrv
  148 ??                0:00.01 /usr/sbin/lpd
  153 ??                0:00.04 /usr/bin/X11/xdm -config /usr/lib/X11/xdm/xdm-c
  155 ??                0:00.79 /usr/bin/X11/Xvga -su -config /usr/lib/X11/Xcon
  157 ??                0:00.09 -:0 (xdm)
  161 ??                0:00.30 telnetd
  156 console     +     0:00.18 /usr/sbin/getty console console at386
  163 pts/0             0:00.51 -csh (csh)
  181 pts/0             0:00.80 -u (csh)
  202 pts/0       +     0:00.06 ps -A


  As how can you see, "mach_init" is runnig !!!. But if I rename 
"/sbin/rc3.d/_S90netmsgserver" to "/sbin/rc3.d/S90netmsgserver", and I
start the computer, "netmsgserver" fails, and the operating system starts
in debugger mode, with the following error messages:

netname_init.netname_ckeck_in fails, kr = -303
Panic: netname_init fails
log dumped
kernel: Page fault trap, code=c1990000 eip=c0110b0e esp=c3133f30
stopped at _ipc_port_destroy+0xfa[ipc_port.o]: movl 0(%ecx), %edx

  In fact, if I execute this short program, it seems that "mach_init" 
is not well installed:

test.c:

-----------------------------------------------------------------------------

#include <stdio.h>
#include <mach.h>

void main (void)
{
  if (MACH_PORT_VALID(service_port)==FALSE)
    puts("Problems ...");
}

-----------------------------------------------------------------------------

  The output is "Problems ...".

  Can somebody help me ?

Thanks in advance,

Fernando. (e-mail address: fpermuy@roble.datsi.fi.upm.es)




^ permalink raw reply	[flat|nested] 6+ messages in thread
* Problems with netmsgserver
@ 1995-07-25  4:00 Fernando Bellas Permuy 
  0 siblings, 0 replies; 6+ messages in thread
From: Fernando Bellas Permuy  @ 1995-07-25  4:00 UTC (permalink / raw)


  I'm working with OSF/1 for i386. My computer is a 486 and the OSF/1 version
is: OSF1 1.2 osc1.2-MK5.0.2 i386. I'm working with Mach 3.0, writing clients
and servers which run in differents computers (linked by a network). I'm
trying to install  "netmsgserver", a name server which it comes with the
standard installation. This server can send messages by the network.

   To install properly "netmsgserver" there are to take into account how
Mach 3.0 works. The "Mach 3.0 Server Writer's Interfaces", appendix C
Service Server, explains very well this point. This handook says:

   Each task inherits a set of registered ports upon creation
(mach_port_registers). These are (send rights) for the name server, an
environment server and the service server. All tasks in the system are
intented to share the same name server, whereas different groups of tasks may
have private environmet servers.

   All tasks need access to the same name server. Given a task whose
registered name server port names the name server, all tasks derived from
that task will inherit the port and share access to the name server.
Unfortunately, being a task itself, the name server intializes itself after
certain other tasks (such as the init process, /etc/init) run. Thus, most
tasks, which derive indirectly from the init task will be missing the name
server (and environmment server) port.

  Because of this, the port for the name server and environment server
must be created (and registered with the init process) before the servers
the ports name exist. This mechanism is provided by the "service" server.

  The privileged server is "mach_init". I installed "mach_init" in
"/mach_servers", and therefore, when the operating system starts, runs
"/mach_init". I did some "ls -l"'s to some important programs:

1.- Let us see "ls -l /etc/init":

lrwxrwxrwx   1 root     19                   10 Jul 20 13:06 /etc/init -> /sbin/
init

2.- "ls -l /sbin/init":

-rwxr-xr-x   1 bin      bin              114866 Dec  7  1992 /sbin/init

3.- "ls -l /mach_servers/mach_init":

-rwxr-xr-x   1 root     wheel            112286 Jul 20 13:00 /mach_servers/mach_
init

  When I start the computer, without typing anything in the "boot:",
"/mach_servers/mach_init" runs. If you type "ps -A", the output is:

  PID TTY      STAT        TIME COMMAND
    0 ??               21:46.55 [OSF/1 server]
    1 ??                0:00.11 init -xx
    2 ??                2:28.22 /mach_servers/mach_init -xx
   17 ??                0:00.01 /sbin/cfgmgr -a
   20 ??                0:00.19 /sbin/update
   61 ??                0:00.01 /sbin/syslogd
   66 ??                0:00.04 /sbin/named
   87 ??                0:00.00 /usr/sbin/strerr
   93 ??                0:00.01 /usr/sbin/portmap
   95 ??                0:00.01 /usr/sbin/mountd
   99 ??                0:00.00 -nfsd.udp (nfsd)
  100 ??                0:00.00 -nfsd.udp (nfsd)
  101 ??                0:00.00 -nfsd.udp (nfsd)
  102 ??                0:00.00 -nfsd.udp (nfsd)
  103 ??                0:00.00 /usr/sbin/nfsiod 4
  104 ??                0:00.01 -nfsd.tcplistener (nfsd)
  105 ??                0:00.01 /usr/sbin/nfsiod 4
  106 ??                0:00.00 /usr/sbin/nfsiod 4
  107 ??                0:00.00 /usr/sbin/nfsiod 4
  123 ??                0:00.01 -accepting connections (sendmail)
  124 ??                0:00.07 /usr/sbin/inetd
  130 ??                0:00.07 /usr/sbin/cron
  142 ??                0:00.02 /usr/sbin/writesrv
  148 ??                0:00.01 /usr/sbin/lpd
  153 ??                0:00.04 /usr/bin/X11/xdm -config /usr/lib/X11/xdm/xdm-c
  155 ??                0:00.79 /usr/bin/X11/Xvga -su -config /usr/lib/X11/Xcon
  157 ??                0:00.09 -:0 (xdm)
  161 ??                0:00.30 telnetd
  156 console     +     0:00.18 /usr/sbin/getty console console at386
  163 pts/0             0:00.51 -csh (csh)
  181 pts/0             0:00.80 -u (csh)
  202 pts/0       +     0:00.06 ps -A


  As how can you see, "mach_init" is runnig !!!. But if I rename 
"/sbin/rc3.d/_S90netmsgserver" to "/sbin/rc3.d/S90netmsgserver", and I
start the computer, "netmsgserver" fails, and the operating system starts
in debugger mode, with the following error messages:

netname_init.netname_ckeck_in fails, kr = -303
Panic: netname_init fails
log dumped
kernel: Page fault trap, code=c1990000 eip=c0110b0e esp=c3133f30
stopped at _ipc_port_destroy+0xfa[ipc_port.o]: movl 0(%ecx), %edx

  In fact, if I execute this short program, it seems that "mach_init" 
is not well installed:

test.c:

-----------------------------------------------------------------------------

#include <stdio.h>
#include <mach.h>

void main (void)
{
  if (MACH_PORT_VALID(service_port)==FALSE)
    puts("Problems ...");
}

-----------------------------------------------------------------------------

  The output is "Problems ...".

  Can somebody help me ?

Thanks in advance,

Fernando.



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Problems with netmsgserver
@ 1995-07-10  4:00 Fernando Bellas Permuy 
  0 siblings, 0 replies; 6+ messages in thread
From: Fernando Bellas Permuy  @ 1995-07-10  4:00 UTC (permalink / raw)


and servers which run in differents computers (linked by a network). I'm
trying to install  "netmsgserver", a name server which it comes with the
standard installation. This server can send messages by the network.

   To install properly "netmsgserver" there are to take into account how
Mach 3.0 works. The "Mach 3.0 Server Writer's Interfaces", appendix C
Service Server, explains very well this point. This handook says:

   Each task inherits a set of registered ports upon creation 
(mach_port_registers). These are (send rights) for the name server, an
environment server and the service server. All tasks in the system are
intented to share the same name server, whereas different groups of tasks may
have private environmet servers.

   All tasks need access to the same name server. Given a task whose 
registered name server port names the name server, all tasks derived from
that task will inherit the port and share access to the name server. 
Unfortunately, being a task itself, the name server intializes itself after
certain other tasks (such as the init process, /etc/init) run. Thus, most
tasks, which derive indirectly from the init task will be missing the name
server (and environmment server) port.

  Because of this, the port for the name server and environment server
must be created (and registered with the init process) before the servers
the ports name exist. This mechanism is provided by the "service" server.

  The privileged "service" server, /mach_servers/mach_init ( in my installation
"mach_init" is not in /mach_servers, it is in /usr/mach3/sbin, is it a 
problem ? ), is run as the first process. It creates the port that will name
the name and environment servers (as well it self) and forcibly registers them
with its parent, thus placing these registered  ports at the root of the task
derivation tree. 

  When the name or environment server is initialized, it registers itself with
the service server, making the port created by the service server it own. Only
the name and environment server have need for the service server.

  In my installation "mach_init" is not run as the first process. In fact, if
you execute "ps -A", you don't see "mach_init". In the directory /sbin/rc3.d,
there is a script to run "netmsgserver" when the operating system starts. The
name of this script is _S90netmsgserver; if I rename it to S90netmsgserver,
when the operating system starts, it tres to run this script, but 
"netmsgserver" fails, because "mach_init" is not run as the first process
(in fact, "mach_init" is not run). Thus, I imagine that the solution to my
problem is to do that "mach_init" is run as the first process, and
rename _S90netmsgserver to S90netmsgserver. Is this correct ? If it is 
correct, how can I run "mach_init" as the first process ?

  I wrote an article to the "news" ( comp.unix.osf.osf1 and 
comp.os.mach ), asking for this question. I recived an answer saying:

--------------------------------------------------------------------------

To get 'netmsgserver' running, the easiest way is to change the nanny
configuration file: (/usr/etc/nanny.config, as under Mach 2.6 MSD)
netmsgserver {
RUNFILE=( )
SCRIPT=( /usr/etc/netmsgserver)
UID=( msgsrv)
GID=( network)
NICE=( 0)
ATTRIBUTES=( mach)
}

This gets the server running and checks whether it keeps running.

-------------------------------------------------------------------------

  This does not work in my installation. In my installation, it does not
exist /usr/etc and the script to run "netmsgserver" is in /sbin/init.d. Thus, 
I wrote the next configuration file (/etc/nanny.config):

netmsgserver {
RUNFILE=( )
SCRIPT=( /sbin/init.d/netmsgserver start)
UID=( msgsrv)
GID=( network)
NICE=( 0)
ATTRIBUTES=( mach)


  This fails again. The "netmsgserver" does not start. The previous 
configuration file does not run "netmsgserver", and if "netmsgserver" would
run, it would fail, because the "mach_init" is not run as the first process.

  Can somebody help me? 

  My e-mail address is: 

               fpermuy@roble.datsi.fi.upm.es

  Thanks in advance,

Fernando. 



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Problems with netmsgserver
@ 1995-07-06  4:00 Fernando Bellas Permuy 
  0 siblings, 0 replies; 6+ messages in thread
From: Fernando Bellas Permuy  @ 1995-07-06  4:00 UTC (permalink / raw)


   I'm working with OSF/1 for i386. My computer is a 486 and the OSF/1 version
is: OSF1 1.2 osc1.2-MK5.0.2 i386. I'm working with Mach 3.0, writing clients
and servers which run in differents computers (linked by a network). I'm
trying to install  "netmsgserver", a name server which it comes with the
standard installation. This server can send messages by the network.

   To install properly "netmsgserver" there are to take into account how
Mach 3.0 works. The "Mach 3.0 Server Writer's Interfaces", appendix C
Service Server, explains very well this point. This handook says:

   Each task inherits a set of registered ports upon creation 
(mach_port_registers). These are (send rights) for the name server, an
environment server and the service server. All tasks in the system are
intented to share the same name server, whereas different groups of tasks may
have private environmet servers.

   All tasks need access to the same name server. Given a task whose 
registered name server port names the name server, all tasks derived from
that task will inherit the port and share access to the name server. 
Unfortunately, being a task itself, the name server intializes itself after
certain other tasks (such as the init process, /etc/init) run. Thus, most
tasks, which derive indirectly from the init task will be missing the name
server (and environmment server) port.

  Because of this, the port for the name server and environment server
must be created (and registered with the init process) before the servers
the ports name exist. This mechanism is provided by the "service" server.

  The privileged "service" server, /mach_servers/mach_init ( in my installation
"mach_init" is not in /mach_servers, it is in /usr/mach3/sbin, is it a 
problem ? ), is run as the first process. It creates the port that will name
the name and environment servers (as well it self) and forcibly registers them
with its parent, thus placing these registered  ports at the root of the task
derivation tree. 

  When the name or environment server is initialized, it registers itself with
the service server, making the port created by the service server it own. Only
the name and environment server have need for the service server.

  In my installation "mach_init" is not run as the first process. In fact, if
you execute "ps -A", you don't see "mach_init". In the directory /sbin/rc3.d,
there is a script to run "netmsgserver" when the operating system starts. The
name of this script is _S90netmsgserver; if I rename it to S90netmsgserver,
when the operating system starts, it tres to run this script, but 
"netmsgserver" fails, because "mach_init" is not run as the first process
(in fact, "mach_init" is not run). Thus, I imagine that the solution to my
problem is to do that "mach_init" is run as the first process, and
rename _S90netmsgserver to S90netmsgserver. Is this correct ? If it is 
correct, how can I run "mach_init" as the first process ?

  I wrote an article to the "news" ( comp.unix.osf.osf1 and 
comp.os.mach ), asking for this question. I recived an answer saying:

--------------------------------------------------------------------------

To get 'netmsgserver' running, the easiest way is to change the nanny
configuration file: (/usr/etc/nanny.config, as under Mach 2.6 MSD)
netmsgserver {
RUNFILE=( )
SCRIPT=( /usr/etc/netmsgserver)
UID=( msgsrv)
GID=( network)
NICE=( 0)
ATTRIBUTES=( mach)
}

This gets the server running and checks whether it keeps running.

-------------------------------------------------------------------------

  This does not work in my installation. In my installation, it does not
exist /usr/etc and the script to run "netmsgserver" is in /sbin/init.d. Thus, 
I wrote the next configuration file (/etc/nanny.config):

netmsgserver {
RUNFILE=( )
SCRIPT=( /sbin/init.d/netmsgserver start)
UID=( msgsrv)
GID=( network)
NICE=( 0)
ATTRIBUTES=( mach)


  This fails again. The "netmsgserver" does not start. The previous 
configuration file does not run "netmsgserver", and if "netmsgserver" would
run, it would fail, because the "mach_init" is not run as the first process.

  Can somebody help me? 

  My e-mail address is: 

               fpermuy@roble.datsi.fi.upm.es

  Thanks in advance,

Fernando. 



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

end of thread, other threads:[~1995-08-18  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-07  4:00 Problems with netmsgserver Fernando Bellas Permuy 
  -- strict thread matches above, loose matches on Subject: below --
1995-08-18  4:00 a880233
1995-08-01  4:00 Fernando Bellas Permuy 
1995-07-25  4:00 Fernando Bellas Permuy 
1995-07-10  4:00 Fernando Bellas Permuy 
1995-07-06  4:00 Fernando Bellas Permuy 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox