Hi All,
I am trying to start the inetd services but it is not getting started.
I have tried with inetd -c command.
[root@ncsqas06:/etc]#
#-> ps -ef | grep -i inetd
root 4075 20851 0 14:27:45 pts/5 0:00 grep -i inetd
[root@ncsqas06:/etc]#
#->
[root@ncsqas06:/etc]#
#-> ll /etc/inetd.conf
-r--r--r-- 1 bin bin 5022 Feb 24 2009 /etc/inetd.conf
[root@ncsqas06:/etc]#
#->
Anyone please let me know, whats the exact issue
Solved! Go to Solution.
'inted -c' simply tells inetd to re-read its configuration file. If inetd isn't running then that will not accomplish anything.
To start inetd try doing:
# /sbin/init.d/inetd start
If there are any errors, post them and we can troubleshoot.
You should also check /var/adm/syslog/syslog.log for any error messages about inetd.
I have tired to restart it but it is not getting started and these below logs are getting generated on the server.
#-> ps -ef | grep -i inetd
root 23682 14099 0 11:06:53 pts/0 0:00 grep -i inetd
[root@ncsqas06:/var/adm/syslog]#
#-> uname -a
HP-UX ncsqas06 B.11.23 U ia64 3127169658 unlimited-user license
[root@ncsqas06:/var/adm/syslog]#
#->
Feb 20 11:05:02 ncsqas06 HP-PRM: [5976]: prm1d: moved pid 23205 (/opt/TIDAL/Agent/lib/HP-UX11i/tjb) to PRMID 0
Feb 20 11:05:13 ncsqas06 HP-PRM: [5976]: prm1d: moved pid 23355 (/usr/openv/netbackup/bin/bpcd) to PRMID 1
Feb 20 11:05:14 ncsqas06 HP-PRM: [5976]: prm1d: moved pgrp 23356 (/opt/quest/qmxcm/libexec/qmxsmsoopcpp1pr) to PRMID 1
Feb 20 11:05:21 ncsqas06 HP-PRM: [5976]: prm1d: moved pid 23372 (/usr/openv/netbackup/bin/bpcd) to PRMID 1
Feb 20 11:05:30 ncsqas06 HP-PRM: [5976]: prm1d: moved pid 23397 (/usr/openv/netbackup/bin/bpcd) to PRMID 1
Feb 20 11:05:30 ncsqas06 HP-PRM: [5976]: prm1d: moved pid 23396 (/usr/openv/netbackup/bin/bpcd) to PRMID 1
Feb 20 11:05:55 ncsqas06 HP-PRM: [5976]: prm1d: moved pid 23458 (/usr/openv/netbackup/bin/bpcd) to PRMID 1
>I have tired to restart it but it is not getting started
You may want to try tusc to see what errors inetd is getting.
#-> /home/sverma8/tusc/tusc/tusc-RUN/usr/local/bin/tusc -f -p -T "%c" -k -o /tmp/tusc_inetd_start inetd
An inetd is already running
Usage: inetd [-a] [-p proc_limit] [-r count [interval]] [-l | -s]
inetd [-c]
inetd [-k]
>I have tried with inetd -c command.
Did you get a message saying: There is no inetd running
>An inetd is already running
Is it now running? Or were you very unlucky and caught it just before it died?
Have you changed /etc/inetd.conf recently and broken it? (I guess not since Feb 2009.)
You might want to use "inetd -l" to turn on logging.
And look at syslog to see if any messages.
Since you ran inetd with tusc, the /tmp/tusc_inetd_start file should now contain a list of all the system calls made by inetd in that start attempt. Examining that file should reveal what inetd was checking to see if it's already running.
Look for the "An inetd is already running" message in the tusc output file, then look for filenames it accesses just before that.
If you don't know how to interpret the tusc output file (/tmp/tusc_inetd_start according to the command you used), please attach it to this thread.
Apparently inetd does not have a PID file, so the reason for this behavior cannot be a stale PID file. Maybe a stale UNIX socket/FIFO or something like that?
Hi,
I am attaching the file /tmp/tusc_inetd_start.
Please review it.
Thu Feb 21 07:27:50 2013 [8057] semget(0x1090522, 1, 0) .................................. = 16390
Thu Feb 21 07:27:50 2013 [8057] semctl(16390, 0, GETPID, 0) .............................. = 0
These entries indicate that a leftover inetd semaphore with the key 0x1090522 is the problem.
Did someone use a kill -9 on inetd?
You may want to list it: ipcs -sa
You can cleanup by: ipcrm -s 16390
>Maybe a stale UNIX socket/FIFO or something like that?
Hmm, a stale semaphore. And they are trying to get a PID out of it and not recognizing a PID of 0, isn't much good.
>Could you please let us know that inetd uses 0x01090522?
That is the semaphore key that is used in semget(2) to get the ID.
And tusc shows that inetd uses that key. If you use "ipcs -sa", you should see the PID of inetd too.