When I run xinetd and I try to run ftp, I receive: 421 Service not available, remote server has closed connection As standalone proftpd works fine. Here are my configs: xinetd.conf: defaults { instances = 60 log_type = SYSLOG authpriv info log_on_success = HOST PID log_on_failure = HOST cps = 25 30 } includedir /etc/xinetd.d /etc/xinetd.d/proftpd service ftp { flags = REUSE socket_type = stream instances = 30 wait = no server_args = -c /etc/proftpd.conf user = root bind = localhost server = /usr/sbin/proftpd log_on_success = HOST PID log_on_failure = HOST } /etc/proftpd/proftpd.conf ServerName "Server FTP" ServerType inetd DefaultServer on RequireValidShell off AuthPAM off AuthPAMConfig ftp Port 21 DefaultRoot ~ Umask 022 MaxInstances 30 User ftp Group ftp <Directory /> AllowOverwrite on </Directory> xinetd in debug mode: 06/2/16@20:17:50: NOTICE: 6844 {main} Started working: 1 available service 06/2/16@20:17:50: DEBUG: 6844 {main_loop} active_services = 1 06/2/16@20:18:03: DEBUG: 6844 {main_loop} select returned 1 06/2/16@20:18:03: DEBUG: 6844 {server_start} Starting service ftp 06/2/16@20:18:03: DEBUG: 6844 {main_loop} active_services = 1 06/2/16@20:18:03: DEBUG: 6848 {exec_server} duping 7 06/2/16@20:18:03: DEBUG: 6844 {main_loop} active_services = 1 06/2/16@20:18:03: DEBUG: 6844 {main_loop} select returned 1 06/2/16@20:18:03: DEBUG: 6844 {check_pipe} Got signal 17 (Child exited) 06/2/16@20:18:03: DEBUG: 6844 {child_exit} waitpid returned = 6848 06/2/16@20:18:03: DEBUG: 6844 {server_end} ftp server 6848 exited 06/2/16@20:18:03: INFO: 6844 {conn_free} freeing connection When I start proftpd with ServerType inetd, and --debug 9 I get: localhost.localdomain - fatal: Socket operation on non-socket localhost.localdomain - (Running from command line? Use `ServerType standalone' in config file!) emerge --info: \Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.15-ck1-buzzy i686) ================================================================= System uname: 2.6.15-ck1-buzzy i686 AMD Duron(tm) Gentoo Base System version 1.12.0_pre15 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer -funroll-all-loops" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe -funroll-all-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL" LC_ALL="pl_PL" LINGUAS="pl" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib alsa apache2 apm arts audiofile authfile avi berkdb bitmap-fonts bzip2 cdr cgi crypt cups curl dba dvd eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran ftp gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib ipv6 ithreads jack java jpeg junit kde lcms libg++ libwww lua mad mikmod ming mng motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl php png python qt quicktime readline real rtc samba sdl session shaper softquota spell sqlite ssl tcltk tcpd threads tiff truetype truetype-fonts type1-fonts udev usb vhosts vorbis win32codecs wmf xine xinetd xml xml2 xmms xv xvid zip zlib linguas_pl userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
Reopen if you can reproduce this with uptodate proftpd versions.