• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

xinetd start "failed"

]SiLENT[

Newbie
Moin,

ich habe versucht xinetd per YaST neu zu starten. Das Stoppen funktionierte einwandfrei, das starten aber nicht, woran kann das liegen?

in den Logs habe ich nur folgendes gefunden:

Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=26]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/chargen-udp [file=/etc/xinetd.d/chargen-udp] [line=13]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=14]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/daytime-udp [file=/etc/xinetd.d/daytime-udp] [line=13]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=14]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/echo-udp [file=/etc/xinetd.d/echo-udp] [line=13]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/netstat [file=/etc/xinetd.d/netstat] [line=14]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/rsync [file=/etc/xinetd.d/rsync] [line=16]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/servers [file=/etc/xinetd.d/servers] [line=12]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/services [file=/etc/xinetd.d/services] [line=13]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/systat [file=/etc/xinetd.d/systat] [line=13]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=17]
Jul 21 12:43:49 h76828 xinetd[6202]: Reading included configuration file: /etc/xinetd.d/time-udp [file=/etc/xinetd.d/time-udp] [line=14]
Jul 21 12:43:49 h76828 xinetd[6202]: removing chargen
Jul 21 12:43:49 h76828 xinetd[6202]: removing chargen
Jul 21 12:43:49 h76828 xinetd[6202]: removing daytime
Jul 21 12:43:49 h76828 xinetd[6202]: removing daytime
Jul 21 12:43:49 h76828 xinetd[6202]: removing echo
Jul 21 12:43:49 h76828 xinetd[6202]: removing echo
Jul 21 12:43:49 h76828 xinetd[6202]: removing netstat
Jul 21 12:43:49 h76828 xinetd[6202]: removing rsync
Jul 21 12:43:49 h76828 xinetd[6202]: removing servers
Jul 21 12:43:49 h76828 xinetd[6202]: removing services
Jul 21 12:43:49 h76828 xinetd[6202]: removing systat
Jul 21 12:43:49 h76828 xinetd[6202]: removing time
Jul 21 12:43:49 h76828 xinetd[6202]: removing time
Jul 21 12:43:49 h76828 xinetd[6202]: 6202 {init_services} no services. Exiting...

Hoffe jemand weiss rat.

MfG
 

oc2pus

Ultimate Guru
es ist kein DIesnt aktiviert, deshalb beendet sich xinetd.

in /etc/xinetd.d stehen die einzelnen Konfigurationsdateien, in jeder dieser Dateien gibt es die Option Disabled=(true,false)
D.h. wenn du keinen dieser Dienste nutzt, brauchst du auch keinen xinetd-Dämonen :)
 
OP
S

]SiLENT[

Newbie
Moin oc2pus,

ich habe in /etc/xinetd.d/ aber eine datei namens "vsftpd" in der folgendes steht:

# default: off
# description:
# The vsftpd FTP server serves FTP connections. It uses
# normal, unencrypted usernames and passwords for authentication.
# vsftpd is designed to be secure.
service ftp
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/vsftpd
# server_args =
# log_on_success += DURATION USERID
# log_on_failure += USERID
# nice = 10
disable = no
}

d.h ich brauch den ftp server, aber wenn xinetd nicht startet... :(
 

oc2pus

Ultimate Guru
öffne eine Konsole:
werde root mit dem Befehl su
tail -f /var/log/messages eingeben

in einer zweiten Konsole:
rcxinetd restart eingeben

die Ausgabe von /var/log/messages dann anschauen, dort sollte es folgende Einträge geben:

Code:
ul 21 12:06:28 lx-i1111 xinetd[16722]: Reading included configuration file: /etc/xinetd.d/vsftpd [file=/etc/xinetd.d/vsftpd] [line=90]

....
Jul 21 12:06:28 lx-i1111 xinetd[16722]: xinetd Version 2.3.13 started with libwrap loadavg options compiled in.
Jul 21 12:06:28 lx-i1111 xinetd[16722]: Started working: 2 available services

in deiner obigen Ausgabe stand NICHTS von vsftpd ....
 
OP
S

]SiLENT[

Newbie
Ich hatte vsftpd testweise deinstalliert, habe es nun aber wieder drauf, siehe log(Habe deine Befehle ausgeführt):

Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=26]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/chargen-udp [file=/etc/xinetd.d/chargen-udp] [line=13]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=14]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/daytime-udp [file=/etc/xinetd.d/daytime-udp] [line=13]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=14]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/echo-udp [file=/etc/xinetd.d/echo-udp] [line=13]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/netstat [file=/etc/xinetd.d/netstat] [line=14]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/rsync [file=/etc/xinetd.d/rsync] [line=16]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/servers [file=/etc/xinetd.d/servers] [line=12]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/services [file=/etc/xinetd.d/services] [line=13]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/systat [file=/etc/xinetd.d/systat] [line=13]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=17]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/time-udp [file=/etc/xinetd.d/time-udp] [line=14]
Jul 21 14:33:13 h76828 xinetd[7593]: Reading included configuration file: /etc/xinetd.d/vsftpd [file=/etc/xinetd.d/vsftpd] [line=14]
Jul 21 14:33:13 h76828 xinetd[7593]: removing chargen
Jul 21 14:33:13 h76828 xinetd[7593]: removing chargen
Jul 21 14:33:13 h76828 xinetd[7593]: removing daytime
Jul 21 14:33:13 h76828 xinetd[7593]: removing daytime
Jul 21 14:33:13 h76828 xinetd[7593]: removing echo
Jul 21 14:33:13 h76828 xinetd[7593]: removing echo
Jul 21 14:33:13 h76828 xinetd[7593]: removing netstat
Jul 21 14:33:13 h76828 xinetd[7593]: removing rsync
Jul 21 14:33:13 h76828 xinetd[7593]: removing servers
Jul 21 14:33:13 h76828 xinetd[7593]: removing services
Jul 21 14:33:13 h76828 xinetd[7593]: removing systat
Jul 21 14:33:13 h76828 xinetd[7593]: removing time
Jul 21 14:33:13 h76828 xinetd[7593]: removing time
Jul 21 14:33:13 h76828 xinetd[7593]: removing ftp
Jul 21 14:33:13 h76828 xinetd[7593]: 7593 {init_services} no services. Exiting...

Starten tut er aber dennoch nicht.

Ich muss dazu sagen das ich Linux noch nicht soo lange verwende (wie man ja sicher auch merkt).

Danke für deine Antwort.
 

oc2pus

Ultimate Guru
hast du nach der Neuinstallation des vsftpd auch die Konfigurationsdatei in /etc/xinetd.d/vsftpd wieder angepasst ?

hast du versucht den vsftpd als Standalone zu konfigurieren ?
poste mal das Ergebnis von netstat -lntp (als root ausführen)
 
OP
S

]SiLENT[

Newbie
Ja, ich habe die .conf datei wieder angepasst indem ich "disable = yes" auskommentiert habe.

Der Output von netstat:

h76828:~ # netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 6984/mysqld
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 5021/master
tcp 0 0 :::80 :::* LISTEN 5203/httpd2-prefork
tcp 0 0 :::22 :::* LISTEN 4804/sshd
tcp 0 0 ::1:25 :::* LISTEN 5021/master

Edit: Nope, der FTP Server läuft nicht standalone, bzw habe das noch nicht ausprobiert. Sollte aber auch über xinetcd laufen oder?
 

oc2pus

Ultimate Guru
Das mit dem standalone war nur die Frage wegen einer Kollision. Zwei Server auf dem gleichen Port geht nicht. Aber der netstat Befehl zeigt das auf dem ftp Port nix läuft.

Prüfe sicherheitshalber in der /etc/vsftpd.conf (ziemlich am Ende)
Code:
# Set listen=YES if you want vsftpd to run standalone
#
#listen=YES
sollte dort stehen.

und ein ls /usr/sbin/vsftpd sollte Sicherheit geben ob das Programm wirklich vorhanden ist.
 

oc2pus

Ultimate Guru
welche SuSE Version hast du denn ?
welche vsftpd Verion und welche xinetd Version?
rpm -q vsftpd
rpm -q xinetd

hast du diese Probleme seit einem Online-Update? wenn ja, dann evtl mal einen downgrade auf die alte Version, wer weiss ?
 
Oben