From: fpermuy@roble.datsi.fi.upm.es (Fernando Bellas Permuy )
Subject: Problems with netmsgserver
Date: 1995/07/07 [thread overview]
Message-ID: <3tj2sn$sf@panoramix.fi.upm.es> (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.
next reply other threads:[~1995-07-07 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-07 4:00 Fernando Bellas Permuy [this message]
-- strict thread matches above, loose matches on Subject: below --
1995-08-18 4:00 Problems with netmsgserver 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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox