xinetd or inetd

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Locked
newpipe
Posts: 5
Joined: 2009/07/18 08:51:31

xinetd or inetd

Post by newpipe » 2009/07/18 08:58:20

Hi,
yesterday I installed my first CentOS system. Before I was always using Debian for my servers.
When I configured my vsftpd I was just wondering how to setup xinetd or inetd for listening on ports and starting vsftpd.
I found /etc/xinetd.d. But there is no xinetd installed by default. Why? Shall I start all my services in standalone mode? What is the concept of CentOS in this issue?

Regards,
newpipe

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: xinetd or inetd

Post by pschaff » 2009/07/18 16:20:08

Welcome to the CentOS fora.

By example:
[root@poq1 ~]# rpm -ql vsftpd | grep etc
/etc/logrotate.d/vsftpd.log
/etc/pam.d/vsftpd
/etc/rc.d/init.d/vsftpd
/etc/vsftpd
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list
/etc/vsftpd/vsftpd.conf
/etc/vsftpd/vsftpd_conf_migrate.sh

See if the service is on by default:
[root@poq1 ~]# chkconfig vsftpd --list
vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

No, so start it and set it to start at boot:
[root@poq1 ~]# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[root@poq1 ~]# chkconfig vsftpd on
[root@poq1 ~]# chkconfig vsftpd --list
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

newpipe
Posts: 5
Joined: 2009/07/18 08:51:31

Re: xinetd or inetd

Post by newpipe » 2009/07/19 13:04:39

Thanks for your answer!
vsftpd ans some other daemons are working right now.
My question was just why there is no xinetd or inetd, so that daemons don't have to run all the time.

Regards,
newpipe

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: xinetd or inetd

Post by toracat » 2009/07/19 13:42:21

[quote]
newpipe wrote:

My question was just why there is no xinetd or inetd, so that daemons don't have to run all the time.
[/quote]
This is purely an upstream decision. You'd have to ask Red Hat why this was done that way.

newpipe
Posts: 5
Joined: 2009/07/18 08:51:31

Re: xinetd or inetd

Post by newpipe » 2009/07/20 08:46:05

All right! Thanks for your answer!

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

xinetd or inetd

Post by gerald_clark » 2009/07/20 13:24:02

If you don't have xinetd, then you did not install any services that required it.
My CentOS 5 servers certainly have it.

ulrith
Posts: 1
Joined: 2014/12/19 20:02:02

Re: xinetd or inetd

Post by ulrith » 2014/12/19 20:05:17

gerald_clark wrote:If you don't have xinetd, then you did not install any services that required it.
My CentOS 5 servers certainly have it.
Does it mean that you can use xinetd with upstart scripts with no problems?

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: xinetd or inetd

Post by avij » 2014/12/19 20:59:38

Upstart scripts and xinetd have different use cases. I don't know if trying to combine them in some way would make any sort of sense.

Also, upstart is something for CentOS 6 and this message was posted to the CentOS 5 section. CentOS 7 has systemd instead. This might not be the correct subforum for your question, depending on what you are trying to achieve.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: xinetd or inetd

Post by TrevorH » 2014/12/22 10:31:03

Also, you are posting to a 5 year old thread with what looks like an unrelated question. Please start your own thread with a descriptive subject in the correct forum and post more details if you still have questions. This thread is locked.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Locked