|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Roman Sindarovskiy 2:5020/400 02 Dec 2007 01:46:56 To : All Subject : Проблемы с xinetd -------------------------------------------------------------------------------- День добрый All FreeBSD 6.2, в jail'е установлены xinetd и apache13 из портов. В xinetd.conf сказано при коннекте на определенный порт стартовать апач. service www_5000 { flags = REUSE socket_type = stream protocol = tcp wait = yes type = UNLISTED cps = 2 10 bind = a.b.c.d server = /usr/local/sbin/httpd passenv = env = PHPRC=/home/user1/conf/ port = 5000 user = user1 group = 80 server_args = -d /home/user1/ -f /home/user1/conf/httpd.conf } При старте апача руками все работает. При старте через xinetd получаю в логах: /var/log/messages: Dec 2 00:18:28 server1 xinetd[3855]: dup2( 0, 0 ) failed: Bad file descriptor (errno = 9) Dec 2 00:18:28 server1 xinetd[3855]: warning: can't get client address: Bad file descriptor Dec 2 00:18:28 server1 xinetd[3855]: fcntl( 0, clear close-on-exec ) failed: Bad file descriptor (errno = 9) Dec 2 00:18:28 server1 xinetd[3856]: dup2( 0, 0 ) failed: Bad file descriptor (errno = 9) Dec 2 00:18:28 server1 xinetd[3856]: warning: can't get client address: Bad file descriptor Dec 2 00:18:28 server1 xinetd[3856]: fcntl( 0, clear close-on-exec ) failed: Bad file descriptor (errno = 9) Dec 2 00:18:28 server1 xinetd[86711]: Deactivating service www_5000 due to excessive incoming connections. Restarting in 10 seconds. /var/log/xinetd.log: 07/12/2@00:18:28: START: www_5000 pid=3855 from=<no address> 07/12/2@00:18:28: EXIT: www_5000 pid=3855 duration=0(sec) 07/12/2@00:18:28: START: www_5000 pid=3856 from=<no address> 07/12/2@00:18:28: EXIT: www_5000 pid=3856 duration=0(sec) 07/12/2@00:18:28: FAIL: www_5000 connections per second from=<no address> DNS настроен, работает. Как одно из решений нашел совет добавить "flags = NOLIBWRAP" в конфиг xinetd и "portmap: 127.0.0.1" в hosts.allow. Hе помогло. Посоветуйте пожалуйста направление куда копать дальше? Спасибо. make.conf, кторый использовал для jail'а: NO_ACPI=true NO_ATM=true NO_AUDIT=true NO_AUTHPF=true NO_BLUETOOTH=true NO_BOOT=true NO_CVS=true NO_DICT=true NO_FORTRAN=true NO_GAMES=true NO_GDB=true NO_GPIB=true NO_I4B=true NO_INET6=true NO_INFO=true NO_IPFILTER=true NO_KERBEROS=true NO_LPR=true NO_MAN=true NO_MODULES=true NO_NETCAT=true NO_PF=true NO_RCMDS=true NO_SHARE=true NO_SHAREDOCS=true NO_USB=true PPP_NO_NAT=true PPP_NO_NETGRAPH=true PPP_NO_RADIUS=true TRACEROUTE_NO_IPSEC=true NO_BIND=true NO_BIND_DNSSEC=true NO_BIND_ETC=true NO_BIND_LIBS_LWRES=true NO_BIND_MTREE=true NO_BIND_NAMED=true NO_BIND_UTILS=true DOC_LANG= NO_WPA_SUPPLICANT_EAPOL=true --- ifmail v.2.15dev5.4 * Origin: Demos online service (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/257980c8a2b0e.html, оценка из 5, голосов 10
|