From: pat on

<jimp(a)specsol.spam.sux.com> wrote in message
news:idq497-1i3.ln1(a)mail.specsol.com...
> pat <philpott.patrick(a)gmail.com> wrote:
>>
>> <jimp(a)specsol.spam.sux.com> wrote in message
>> news:laj497-ao2.ln1(a)mail.specsol.com...
>>> pat <philpott.patrick(a)gmail.com> wrote:
>>>> All,
>>>>
>>>> Is there a max number of enteries in the /etc/services file? I'm
>>>> running
>>>> Solaris 9 and I've added 3 enteries for my applications and it works
>>>> for
>>>> one
>>>> but not all 3.
>>>>
>>>> Thanks
>>>
>>> Nope, other than maybe the max size of an integer.
>>>
>>> By it not working do you mean netstat -a shows one service as a name and
>>> the other two as numbers?
>>>
>>>
>>> --
>>> Jim Pennino
>>>
>>> Remove .spam.sux to reply.
>>>
>> So if I I add these services to the /etc/services file and then run a
>> netstat -a I should see them listed and if they are not listed what does
>> that usually mean.
>>
>> A123 8500/tcp
>> B123 8700/tcp
>> C123 8900/tcp
>>
>> Thank you
>
> You will only see them with netstat if there is something actually running
> on the port, which I foolishly assumed you already have.
>
> Otherwise, use something like "getent services 8500" and it should return
> A123 8500/tcp.
>
>
> --
> Jim Pennino
>
> Remove .spam.sux to reply.
>

Thanks for all your help dopey typo !!!!!!


From: Sami Ketola on
pat <philpott.patrick(a)gmail.com> wrote:
> All,
>
> Is there a max number of enteries in the /etc/services file? I'm running
> Solaris 9 and I've added 3 enteries for my applications and it works for one
> but not all 3.

Applications do not need /etc/services for anything. They can open and
listen a port regardless of if it's listed in /etc/services or not.

So if your application fails to listen a port the problem is somewhere
else and not in /etc/services. Fix your app.

Sami
From: Chris Ridd on
On 2010-04-10 08:55:58 +0100, Sami Ketola said:

> pat <philpott.patrick(a)gmail.com> wrote:
>> All,
>>
>> Is there a max number of enteries in the /etc/services file? I'm running
>> Solaris 9 and I've added 3 enteries for my applications and it works for one
>> but not all 3.
>
> Applications do not need /etc/services for anything. They can open and
> listen a port regardless of if it's listed in /etc/services or not.

Actually some will open their port by service name, so it *needs* to be
in /etc/services (or NSS equivalent.)

MIT's Kerberos does this, IIRC.

> So if your application fails to listen a port the problem is somewhere
> else and not in /etc/services. Fix your app.

--
Chris