- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- inetd Service
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 11:34 PM
04-10-2008 11:34 PM
inetd Service
I am new to HP UNIX. I require to start my application as service. Before configuring my actual application, I just tried with a sample script act as an application which has just debug prints. I did the following steps,
1. Added the following entry in the /etc/inetd.conf file,
pmpagent stream tcp wait root /home/test/rameshj/service/a.sh testargs
2. Added the following entry in the /etc/service file,
pmpagent 5768/tcp
Then I restart inetd using the inetd command.
/sbin/init.d/inetd stop
/sbin/init.d/inetd start
I expected that, the a.sh script should call during "inetd start" operation. But it was not called. In my script, I performed the below operation in a while loop,
echo "test" > /home/test/rameshj/op.txt. But I couldn't find the op.txt after startup of inetd. Am I missing anything ? Can somebody please help me to resolve this issue ?
Thanks in advance,
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 12:01 AM
04-11-2008 12:01 AM
Re: inetd Service
inetd is listening to port 5768 and start your script if a connection request come in.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 12:06 AM
04-11-2008 12:06 AM
Re: inetd Service
http://en.wikipedia.org/wiki/Inetd
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 12:17 AM
04-11-2008 12:17 AM
Re: inetd Service
telnet localhost pmpagent
then in an other window check if a.sh is running.
If not check /var/adm/syslog/syslog.log
else to reload the config you can just do inetd -c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 01:13 AM
04-11-2008 01:13 AM
Re: inetd Service
If u run inetd service it will reread the file /etc/services & /etc/inet.conf files
If u r script is fine it will call
Regards
chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 02:27 AM
04-11-2008 02:27 AM
Re: inetd Service
Torsten,
My understanding was wrong. Now, I understood... my script will call only if any request come to port 5768.
I require to start/stop my application whenever system comes up/goes down respectively. I think, it can be done via creating link to my application under /sbin/init.d directory. But I am not sure. Is it just enough to create a soft link under /sbin/init.d directory ? or Should I perform any other steps to meet my requirement ?
Thanks,
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 02:35 AM
04-11-2008 02:35 AM
Re: inetd Service
Do a
man rc
and have a look at
/sbin/init.d/template
and don't forget a matching file in /etc/rc.config.d
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2008 02:57 AM
04-11-2008 02:57 AM
Re: inetd Service
> whenever system comes up/goes down
> respectively. I think, it can be done via creating link to my application under /sbin/init.d directory. But I am not sure. Is it just enough to create a soft link under /sbin/init.d directory ? or Should I perform any other steps to meet my requirement ?
1) you need to put a link in /sbin/rc2.d or /sbin/rc3.d.
2) if you are using socket API or dns request ne sure to start after S008net.init
The link name mus be SXXXmyscript and KXXXmyscript
Where XXX is a sequence number with 3 digits