OpenSolaris and gnuserv

I installed OpenSolaris 2008.11 on my notebook (a VAIO TX) several weeks ago. I've been tweaking the environment, in preparation for the day when I move to OpenSolaris on my desktop system.

One of the issues that came up was that gnuserv would exit immediately after being started. This meant that every time I wanted an editor (e.g., for a Mercurial commit), I had to wait for a new XEmacs process to start.

I looked around for some sort of error message but couldn't find anything. I finally started XEmacs using truss -f. Looking at the truss output, I saw that gnuserv was looking in /etc/hosts and not finding an entry with the notebook's hostname ("loiosh").

I added "loiosh" to the localhost (127.0.0.1) line, and that fixed the problem.

Comments:

Maybe name service switch should ensure that if no backend finds a hosts entry for the host's hostname then it should treat it as an alias of localhost. No?

Posted by Nico on February 13, 2009 at 06:05 AM PST #

@Nico: that seems reasonable to me, though I have no idea if that could cause some other problem.

Posted by Mike Kupfer on February 13, 2009 at 06:22 AM PST #

Odd. The OpenSolaris installer normally configures the loopback address to the hostname you supplied to it. If you've got any idea what path got you to this state, would be nice to know.

Posted by Dave Miner on February 13, 2009 at 09:47 AM PST #

Dave: IIRC, the original install was using the "back to school" CD, followed by an image-update to 2008.11rc1, followed by an image-update to 2008.11 final. Using "beadm mount" to look at the older /etc/hosts, I see that the original /etc/hosts had

127.0.0.1 loiosh loiosh.local localhost loghost

The 2008.11rc1 /etc/hosts had

127.0.0.1 loiosh.local localhost loghost

That's what I had with 2008.11 final until I added "loiosh" at the end.

Posted by Mike Kupfer on February 14, 2009 at 05:53 AM PST #

Post a Comment:
Comments are closed for this entry.
About

Random information that I hope will be interesting to Oracle's technical community. The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today