[SunHELP] Need help on RPC with inetd problem

Nicholas Dronen sunhelp at sunhelp.org
Thu Oct 25 14:49:31 CDT 2001


On Thu, Oct 25, 2001 at 02:37:28PM -0400, gen.li at citicorp.com wrote:
> 
> 
>    -----Original Message-----
>    From:       Li, Gen 
>    Sent:       Wednesday, October 24, 2001 12:21 PM
>    To:         'sunhelp at sunhelp.org'; 'rescue at sunhelp.org'
>    Cc:         Li, Gen
>    Subject:    
>    
>    Sunhelpers and rescuers:
>    
>    I have a RPC program which is generated by using "rpcgen -I -b" and
>    compiled with "gcc -lnsl -lsocket". The RPC server is working fine if
>    I start it on the command line, but when I tried to start it by inetd
>    (put into the /etc/inetd.conf file with: "536870920/2 stream rpc/tcp
>    nowait root /usr/local/bin/rpg_svc rpg_svc), it failed. The syslog
>    message shows that: "rpg[2195]: [ID 952037 daemon.error]
>    svc_tli_create: could not do t_sync: Illegal file descriptor;
>    rpg[2195]: [ID 659090 daemon.error] cannot create tcp service.". This
>    has been tested on both Solaris 2.6 and 8. You help is appriciated.

1) 536870920 isn't a legal port number.
2) It looks to me that the -b option creates services
   which use TLI (hence the call to t_sync), so your
   entry for this daemon in /etc/inetd.conf might have
   to follow the TLI convention.

Regards,

Nicholas Dronen



More information about the SunHELP mailing list