Operating System - HP-UX
1752794 Members
5885 Online
108789 Solutions
New Discussion юеВ

Re: Inetd on an rx2660 running 11.31 will not start

 
SOLVED
Go to solution
Ian Patterson
Advisor

Inetd on an rx2660 running 11.31 will not start

Hello there, I have a problem with an ia64 rx2660 itanium server in that the inetd daemon will not start. I do a grep on the inetd and it presents as follows;
inetd -l
I do a /sbin/init.d/inetd stop and this returns
Internet Services stopped however when I grep for inetd the following is still present;
inetd -l
I then do /sbin/init.d/inetd start and this returns;
An Inetd is already running
Usage: inetd [-a] [-p proc_limit] [-r count [interval]] [-l | -s] inetd -c inetd -k
EXIT CODE: 255
Unable to start Internet Services

Can you offer some suggestions here for me to try, nfs is still going and remote console is still active but no rlogin or telnets
42 REPLIES 42
Steven E. Protter
Exalted Contributor
Solution

Re: Inetd on an rx2660 running 11.31 will not start

Shalom,

ps -ef | grep inet

See if there is a process.

man inetd

See the start/stop options/

vi /etc/inetd.conf

Lets see how its configured.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ian Patterson
Advisor

Re: Inetd on an rx2660 running 11.31 will not start

Thanks for responding so quickly
The /etc/inetd.conf has the following enabled
ftp stream tcp6 nowait root /usr/lbin/ftp ftpd -l

telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd

bootps dgram udp wait root /usr/lbin/bootpd bootpd

login stream tcp6 nowait root /usr/lbin/rlogind rlogind

shell stream tcp6 nowait root /usr/lbin/remshd remshd

exec stream tcp6 nowait root /usr/lbin/rexecd rexecd

ntalk dgram udp wait root /usr/lbin/ntalks ntalkd

auth stream tcp6 wait bin /usr/lbin/identd identd

printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i

daytime stream tcp6 nowait root internal
daytime dgram udp6 nowait root internal
time stream tcp6 nowait root internal
echo stream tcp6 nowait root internal
echo dgram udp6 nowait root internal
discard stream tcp6 nowait root internal
discard dgram udp6 nowait root internal
chargen stream tcp6 nowait root internal
chargen dgram udp6 nowait root internal

kshell stream tcp6 nowait root /usr/lbin/remshd remshd -k

klogin stream tcp6 nowait root /usr/lbin/rlogind rlogind -k

swat stream tcp nowait.400 root /opt/samba/bin/swat swat
recserv stream tcp nowait root /usr/lbin/recserv recserv -display :0
registrar stream tcp6 nowait root /etc/opt/resmon/lbin/registrar /etc/opt/resmon/lbin/registrar
tftp dgram udp wait root /usr/lbin/tftpd tftpd\

/opt/ignite\
/var/opt/ignite
omni stream tcp nowait root /opt/omni/lbin/inet inet -log /var/opt/omni//log/inet.log
instl_boot dgram udp wait root /opt/ignite/lbin/instl_bootd instl_bootd

These are the active lines in the inetd.conf


Suraj K Sankari
Honored Contributor

Re: Inetd on an rx2660 running 11.31 will not start

Hi,

What is the output of
ps -aef | grep -i inetd

is there any thing you can see in your /var/adm/syslog/syslog.log file.


Suraj
Ian Patterson
Advisor

Re: Inetd on an rx2660 running 11.31 will not start

ps -aef|grep -i inetd shows;
root 11342 10408 0 16:02:41 console 0:00 grep -i inetd

root 10635 1 0 Apr 13 ? 0.00 inetd -l

The last bits of the syslog.log are as follows;
Apr 13 08:03 hporap26 inetd 3868 going down on signal 15
Apr 13 08:05:50 hporap26 inetd connection logging enabled
Apr 13 08:05:50 hporap26 inetd Reading configuration
---but it does not complete---

Ian
Ivan Krastev
Honored Contributor

Re: Inetd on an rx2660 running 11.31 will not start

Try to kill that inetd process and start it again via /sbin/init.d/ script.


regards,
ivan
Ian Patterson
Advisor

Re: Inetd on an rx2660 running 11.31 will not start

well I had tried this before but running the command from /sbin/init.d made no difference.

Rebooting the server does not help either since the server boot calls to start the inetd and it hangs just as before.

doing a /sbin/init.d/inetd stop
states that the Internet Services Stopped
but a grep of the inetd still shows the pervasive process as follows;
ps -ef|grep inetd
root 10635 1 0 Apr 13 ? 0:00 inetd -l

running the restart produces the following as before;

/sbin/init.d/inetd start
An inetd is already running
Exit Code: 255
Unable to start Internet services

Lets know if you think of something else to try.

Ian
Ivan Krastev
Honored Contributor

Re: Inetd on an rx2660 running 11.31 will not start

Arm yourself with tusc - http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-8.0/

and check what exacly happens when you are trying to start the inetd daemon.

regards,
ivan
Horia Chirculescu
Honored Contributor

Re: Inetd on an rx2660 running 11.31 will not start

Hello Ian,

Try to kill the running daemon:

kill -9 10635

In order to simplify things, empty the syslog.log (if you need to save the log you can copy this file elsewhere first)

> /var/adm/syslog/syslog.log

Next, start again inetd

/sbin/init.d/inetd start

Post here the content of syslog:

cat /var/adm/syslog/syslog.log

Best regards from Romania,

Horia.
Best regards from Romania,
Horia.
S. Ney
Trusted Contributor

Re: Inetd on an rx2660 running 11.31 will not start

Ian,

Do you have bastille or the security containment extensions bundle configured?
http://docs.hp.com/en/5992-5804/ch08s07.html

Also is inetd turned on in /etc/rc.config.d/netdaemons?