/etc/rc.net, /etc/host.conf and ps problems

/etc/rc.net, /etc/host.conf and ps problems

Post by Donald Camer » Sat, 22 Jan 1994 09:04:15



Summary
-------

After installing Linux (SLS, from an ftp site here in BNR ottawa, version .99 w/
ld 1.3), I have 3 problems, my ps doesn't work, /etc/rc.net is returning error
codes at boot time, and my /etc/host.conf is corrupted.

Question on ps:
---------------

I found my ps command was not working.  To fix this i added the line

/proc /proc proc defaults

to /etc/fstab.  This seemed to have no effect until I added this line to my /etc/rc

mount /proc

ps then seemed to work ok.  my question is: is this the correct solution?  I'm
sure this is a kludge and there is actually something still wrong!

Question on /etc/rc.net
-----------------------

Since my machine is standalone can I just 'chmod' it so that this script isn't
executed at boot time?  If not how can I get rid of the following error messages:

/etc/rc.net:softland(192.0.2.128)SIOFADDR: invalid arguement
SIOCSIFFLAGS: invaild arguement
SIOCSIFFLAGS: invalid arguement
SIOCSIFFLAGS: invalid arguement
SIOCSIFFLAGS: invalid arguement
SIOCSIFNETMASK: invalid arguement
SIOADDRT: network is unavailable

i have the network administrators guide printing now, so if by reading it i will
get all i need to know then ignore this question!

Question on /etc/host.conf
--------------------------

my /etc/host.conf is:

order hosts bind
multi

The problem is that both the boot process (I assume it to be 'init') and my X server say:

/etc/host.conf: multi command incorrectly formatted

At boot time I just ignore it, but when i try to start up X it gets really anoying because X dies, (actually it doesn't die until the first client tries
to execute) when the first client executes it dies complaining that it couldn't open the display.  

can't open display :0

I assume at this point that it has something to do with the host.conf file.  I
don't know if thats a valid assumption, since i don't know anything about the
host.conf file and even less about the 'multi' command.  Before asking this
question I tried looking in the comp.unix faq, various linux faqs, the linux man
pages as well as the HPUX man pages here at work.  The end result being that I
now know that the 'hosts' file maps symbolic names to numeric internet adresses.
I still know very little about the 'host.conf' file.  My biggest concern is that
I just don't know where to look to figure this one out!

If you can think of other reasons for X not having access the the display I would appreciate those too, although being an X question I don't expect it to
be answered here.

Follow Up
---------


prefer the first address as I am here most of the time and my response will be
MUCH quicker.

thanks for any help!!

mike.

   Michael J. Garvin
   763-8309

   Sysdoc dept. 8I32
   Bell Northern Research
         ___
   |\ | |   | \    /
   | \| |___|  \/\/  is the only thing thats real!

 
 
 

/etc/rc.net, /etc/host.conf and ps problems

Post by Ross Boswe » Sun, 23 Jan 1994 07:52:17


: I found my ps command was not working.  To fix this i added the line
: /proc /proc proc defaults
: to /etc/fstab.  

My /etc/fstab has
none  /proc  proc  defaults
and it seems to work.

: If not how can I get rid of the following error messages:

: /etc/rc.net:softland(192.0.2.128)SIOFADDR: invalid arguement
: SIOCSIFFLAGS: invaild arguement
: SIOCSIFFLAGS: invalid arguement
: SIOCSIFFLAGS: invalid arguement
: SIOCSIFFLAGS: invalid arguement
: SIOCSIFNETMASK: invalid arguement
: SIOADDRT: network is unavailable

If you told us what's in your /etc/rc.net we might be able to help.

: my /etc/host.conf is:

: order hosts bind
: multi

Try
multi on
and it should work.

--
+-----------------------------------------+-----------------------------+

| Christchurch School of Medicine         |  FAX      +64 3 364 0525    |
| PO Box 4345, Christchurch, NEW ZEALAND  |  Phone    +64 3 364 0590    |
+-----------------------------------------+-----------------------------+

 
 
 

1. SOLUTIONS TO: /etc/rc.net, /etc/host.conf and 'ps' problems

Problem #1
----------

After boot my 'ps' command was not working.  My kludge was to use 'mount /proc'

it was:

/dev/hda1 /root ext2 defaults

now its:

/dev/hda1 / ext2 defaults

problem #2
----------

At boot time I was getting a bunch of weird network errors, I thought this

after a closer look at my /etc/rc srcript I found it already had an 'if[-x /etc/rc.net...' test.  So the solution was

chmod -x /etc/rc.net

problem #3
----------

At boot time I was getting an error from the file 'host.conf', namely:

'multi command inproperly formated'

This also caused problems when I tried to start up X with clients in the .xinitrc because they would try to resolve hostname and hit 'host.conf'
in the process.  After looking at the NET-2-HOWTWO the solution was to change
the 'multi' command in my host.conf file from:

multi

to:

multi on

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

Thanks for the help!

   Michael J. Garvin
   763-8309

   Sysdoc dept. 8I32
   Bell Northern Research
         ___
   |\ | |   | \    /
   | \| |___|  \/\/  is the only thing thats real!

2. kernel ( checksum.c )

3. Looking for sample /etc/named.conf and etc/resolv.conf and /etc/hosts

4. UDP: bad checksum - What is this ??

5. /etc/host.conf and /etc/nsswitch.conf

6. How to get XDM to write wtmp login records

7. /etc/rc: sendmail parms don't match /etc/rc.conf

8. NIS client and RedHat 8

9. NET-2: Problems with /etc/rc.net

10. difference between /etc/rc.sysinit and /etc/rc.d/rc.sysinit ?

11. ps/1, Lilo, etc etc etc problems w/ instalation

12. Unixware 2.1 - which utility copies files to /etc/idrc.d from /etc/conf/rc.d?

13. Resolver and /etc/host.conf and nsswitch.conf