1837202 Members
2669 Online
110115 Solutions
New Discussion

inetd daemon

 
Ravi_8
Honored Contributor

inetd daemon

Hi all

In one of my running 11i, inetd daemon is not starting at booting time, each i need to start manually. Entry exist in /sbin/rc2.d as well in /sbin/init.d.

what could be the problem?

thanx in advance
never give up
19 REPLIES 19
melvyn burnard
Honored Contributor

Re: inetd daemon

what does your /etc/rc.log file say?
If you start it manually, does it stay running? and are you using the rc startuop script to get it running?
Has it always done this? or has it recently started to do this? If the second option, then what has changed recently??
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Tapas Jha
Valued Contributor

Re: inetd daemon

Hi Ravi,

Check these out. First check /etc/rc.log file. There you will find the reason.

Check permission,ownership in /sbin/init.d/inetd (It should be permission 555 and ownership bin:bin)

Also check the link in /sbin/rc2.d directory. Check S is there or not like below:

lrwxr-xr-x 1 root sys 18 Jun 13 2001 S500inetd -> /sbin/ini
t.d/inetd
Rgds
Tapas
Tapas Jha
Sanjay Kumar Suri
Honored Contributor

Re: inetd daemon

1. Check /sbin/init.d/inetd script.
2. Check for old configuration files in /etc/rc.config.d/. Filenames containing [.,~#] are not sourced.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Lorenzo Facello
Valued Contributor

Re: inetd daemon

Hi,
in /etc/rc.log you should have a strings like this:
Start Internet services daemon
Output from "/sbin/rc2.d/S500inetd start

Do you have a situation like this under /sbin/rc2.d/?
lrwxr-xr-x 1 root sys 18 Sep 5 2000 S500inetd -> /sbin/init.d/inetd
Ravi_8
Honored Contributor

Re: inetd daemon

Hi Melvyn

the error in /etc/rc.log is like this

Output from "/sbin/rc2.d/S500inetd start":
----------------------------
Usage: inetd [-l]
inetd [-c]
inetd [-k]
inetd [-s]----------
"/sbin/rc2.d/S500inetd start" FAILED

but when the m/c is up i issue /usr/sbin/inetd to start the service
never give up
Bharat Katkar
Honored Contributor

Re: inetd daemon

Ravi,
This is problem with the entry in inetd.conf file. What i suggest is why dont you delete the entry and rewrite it.
Then try rebooting.
You need to know a lot to actually know how little you know
RAC_1
Honored Contributor

Re: inetd daemon

something with /sbin/init.d/inetd.

cat -v /sbin/init.d/inetd

Anything here? special char etc?
cat -v /etc/rc.config.d/inetd

Anything here?

Anil
There is no substitute to HARDWORK
Mark Grant
Honored Contributor

Re: inetd daemon

Is it possible your $INETD_ARGS variable is a bit screwy. Have a look in /etc/rc.config.d/netdaemons

It should probably look like this

export INETD_ARGS=
Never preceed any demonstration with anything more predictive than "watch this"
Bharat Katkar
Honored Contributor

Re: inetd daemon

Sorry Ravi,
Bit confused. Ignore my earlier message.

What i suspect is may be your script S500inetd got some errors or unwanted characters in. See if there are any changes done or change in time stamp of the file.
See if you corrrect them.
You need to know a lot to actually know how little you know
Ravi_8
Honored Contributor

Re: inetd daemon


under /sbin/rc2.d
# ll|grep inetd
lrwxr-xr-x 1 root root 18 May 6 2003 S500inetd -> /sbin/ini
t.d/inetd
#
#
# pwd
/sbin/rc2.d
# cd ../init.d
# ll|grep inet
-r-xr-xr-x 1 bin bin 65536 Jul 27 2001 inetd

Mark:

export INETD_ARGS=
in my /etc/rc.config.d/netdaemons


never give up
RAC_1
Honored Contributor

Re: inetd daemon

ll /etc/rc.config.d/inet*

How many files? Any files such as .bak .org etc??

Anil
There is no substitute to HARDWORK
Tapas Jha
Valued Contributor

Re: inetd daemon

Hi,

If you check /sbin/init.d/inetd script, then you will find like below:
[ -x /usr/sbin/inetd ] && /usr/sbin/inetd $INETD_ARGS

The INETD_ARGS is in /etc/rc.config.d/netdaemons file. It should contain entry like export INETD_ARGS=

Thanx.
Tapas
Tapas Jha
Mark Grant
Honored Contributor

Re: inetd daemon

In that case, I'd start playing with the startup script to see exactly what you are getting.

in /sbin/init.d/inetd, around line 46 at the bit where it actually runs inetd, I'd enclose the command in suitable quotes, put an "echo" at the start and redirect it to a file. Also worth doing an "env" and redirecting that output too. Then at least you can see exactly what is happening.
Never preceed any demonstration with anything more predictive than "watch this"
melvyn burnard
Honored Contributor

Re: inetd daemon

I agree with the suggestions above, you have something set in the startup scrpts causing the error, as you are able to start it using the full pathname of the executable via the command line.
Start checking the rc.config file, and also the actual /sbin/init.d startup script
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Fred Ruffet
Honored Contributor

Re: inetd daemon

It seems to me you have a particularly big /sbin/init.d/inetd. Isn't it the executable rather than the init script ? That would explain why he complains about start and ask for -l, -c...

I have this :
/ >: ll /sbin/init.d/inetd
-r-xr-xr-x 1 bin bin 1403 14 nov 2000 /sbin/init.d/inetd
/ >: ll /usr/sbin/inetd
-r-xr--r-- 1 bin bin 65536 27 juil 2001 /usr/sbin/inetd

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ravi_8
Honored Contributor

Re: inetd daemon

Hi Mark/Melvyn

I comapred the /etc/rc.config and /sbin/init.d/inetd files with other m/c in which inetd start while booting, there is no difference.In fact i copied those files to this problematic m/c. I rebooted both the machines. still this m/c is not starting inetd whereas in other m/c it is starting
never give up
RAC_1
Honored Contributor

Re: inetd daemon

Do you have any files in /etc/rc.config.d/

with extensions like .save, .bak etc. There should only be config files for /sbin/init.d/ script.

Anil
There is no substitute to HARDWORK
Fred Ruffet
Honored Contributor

Re: inetd daemon

When you launch manually inetd, do you use /sbin/init.d/inetd ?

Excuse me to fix on my first idea, but could you provide results for :
ll /usr/sbin/inetd /sbin/init.d/inetd
file /usr/sbin/inetd
file /sbin/init.d/inetd

Fred
--

"Reality is just a point of view." (P. K. D.)
Ravi_8
Honored Contributor

Re: inetd daemon

after copying the inetd file from other m/c and after a reboot, i am not getting the previous error in /etc/rc.log but still the daemon is not starting. decided to log a call with HP. I will post the solution.

thanx everybody for your time
never give up