ich wollte diverse dienste von xinetd verwalten lassen. Dies wären ein apache2 daemon und ein mysql daemon. Meine xinetd.conf ist folgendermaßen aufgebaut:
Code: Select all
defaults
{
log_type = FILE /var/log/xinetd.log
log_on_success = HOST EXIT DURATION
log_on_failure = HOST ATTEMPT
only_from = localhost
instances = 30
cps = 50 10
#
# The specification of an interface is interesting, if we are on a firewall.
# For example, if you only want to provide services from an internal
# network interface, you may specify your internal interfaces IP-Address.
#
interface = 127.0.0.1
}
includedir /etc/xinetd.d
Hier die jeweiligen einträge in /etc/xinetd.d/ für die beiden daemons:
apache
Code: Select all
service http
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/httpd2
port = 80
}
mysql
Code: Select all
service mysql
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = mysql
server = /usr/sbin/mysqld
}
Die beiden services hab ich vorher natürlich via runlevel editor vom starten durch init gehindert.
Wenn ich nun mit einem browser auf localhost zugreife kommt frolgende ausschrift:
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
Meine frage: warum schafft es xinetd nicht den service an den port zu binden? Warum wird port 80 bereits benutzt? Ich hab doch apache2 disabled? Das selbe problem bei mysql. Er kann den service nicht auf port 3306 binden, da angeblich kein socket da ist, der lauschen kann, weil der port bereits benutzt wird.
Ein telnet connect zu localhost:3306 gibt folgendes ergebnis:
Can't start server: Bind on TCP/IP port: Address already in use.
Do you already have anoter mysqld server running on port: 3306 =
Aborting
mysqld: Shutdown Complete
Irgendwo muss jeweils eine weitere instanz von den zweid aemons laufen. Ich weiß nicht wo bzw. wie ich das problem fixen kann.
Any hints?
--bin4ry