LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2011, 06:46 AM   #1
rajhn
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
Configure new rpc service - xinetd


Hi,

I am using RHEL 5.5;
i.e, Red Hat Enterprise Linux Server release 5.5 (Tikanga)

How to create rpc service, with which xinetd should spawn new process for each request.

service details under /etc/rpc

dbprocprog 500126 dbprocprog
Dails of service 'dbprocprog' under /etc/xinetd.d

[root@vmrhpe02 xinetd.d]# cat /etc/xinetd.d/dbprocprog
# Sample RPC service
service dbprocprog
{
disable = no
type = RPC
socket_type = stream
wait = no
user = mduser
server = /tmp/BL2456_ora11g_Linux_QA/bin/v_rpcangelproc
rpc_version = 3
}
NOTE: works fine when i set wait 'yes' (single thread)

Restarted xinetd service using
#service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]

console output of rpcinfo as below;

[root@vmrhpe02 xinetd.d]# rpcinfo -p
program vers proto port
500126 3 tcp 51738 dbprocprog


When i check for service status;
#rpcinfo -n 51738 -t vmrhpe02 500126 3
rpcinfo: RPC: Unable to receive; errno = Connection reset by peer
program 500126 version 3 is not available


Looking forward for expert's view to resolve the issue in order to enable the RPC service start and xinetd should spawn new rpc process for each request.

Last edited by rajhn; 01-31-2011 at 06:48 AM.
 
Old 02-01-2011, 02:17 AM   #2
rajhn
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Exclamation copied content from /var/log/messages

content from /var/log/messages while starting the service;

Feb 1 12:29:22 vmrhpe02 xinetd[25589]: START: dbprocprog pid=25593 from=10.132.4.20
Feb 1 12:29:22 vmrhpe02 dbrpc[25593]: cannot create tcp service.
Feb 1 12:29:22 vmrhpe02 xinetd[25589]: EXIT: dbprocprog status=1 pid=25593 duration=0(sec)

Hope this input helps to reply for the mentioned issue.
 
Old 02-01-2011, 03:46 AM   #3
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Option 'Wait'

Determines whether or not the service can accept multiple connections. If "yes", xinetd won't accept new connections for this service until the active one exits.
 
Old 02-02-2011, 01:15 AM   #4
rajhn
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your concern and quick response.

I think you are conveying the purpose of Wait parameter used while configuring a service under xinetd.

Actually issue seems to be with the limitation in linux in generating Multi-thread safe code by RPCGEN. Hence with RPC service which i have configured works fine only for single thread i.e., when i set wait as 'yes'. Otherwise fails to create multiple connections for the RPC service when wait is set as 'no'.

Kindly refer below link for more details;
http://www.spinics.net/lists/rh-devel/msg01803.html
 
Old 02-02-2011, 01:59 AM   #5
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
I also getting the same

[root@vmrhpe02 xinetd.d]# rpcinfo p
program vers proto port
100005 2 tcp 803 mountd
100005 3 udp 800 mountd
100005 3 tcp 803 mountd
300019 1 tcp 624 amd
300019 1 udp 625 amd
500126 3 tcp 45375 dbprocprog

[root@vmrhpe02 xinetd.d]# rpcinfo -n 45375 -t vmrhpe02 500126 3
rpcinfo: RPC: Unable to receive; errno = Connection reset by peer
program 500126 version 3 is not available


How come this happen ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPC vs xinetd drManhattan Linux - General 1 01-16-2011 09:04 PM
Unidentified RPC Service gatsby Solaris / OpenSolaris 2 10-26-2010 08:29 AM
how to configure ssh (xinetd) service sanjay2004 Linux - Server 8 03-01-2010 10:50 AM
RPC service without portmap service sjfdj Linux - General 1 08-27-2008 01:10 AM
Register rpc service on a remote machine? sokar Programming 1 07-26-2005 06:49 PM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration