Hi
I guess xinetd mailing list is a more appropriate place for my
question, but the archive on xinetd site seems to be broken, so I post
here.
I have a problem to get tftp (tftpd server from inetutils package
v1.4.2) service to work with xinetd: first tftp transfer succeeds, but
after that xinetd stops responding to tftp and telnet connections. I
experience this problem with xinetd versions newer than 2.3.7 (2.3.7
works fine, but I don't want to stuck with 2.3.7).
My question is: is it a xinetd bug or there is some confuguration
setting I missed ?
bash-2.05# cat /etc/xinetd.conf
defaults
{
}
service telnet
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.telnetd
server_args = -h
}
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/tftpd
server_args = /
}
This is xinetd 2.3.7 output (one tftp connection made):
bash-2.05# /usr/sbin/xinetd -d
[configuration snipped]
04/5/20@13:53:50: DEBUG: {cnf_start_services} Started service: telnet
04/5/20@13:53:50: DEBUG: {cnf_start_services} Started service: tftp
04/5/20@13:53:51: DEBUG: {cnf_start_services} mask_max = 7,
services_started = 2
04/5/20@13:53:51: NOTICE: {main} xinetd Version 2.3.7 started with no
options co
mpiled in.
04/5/20@13:53:51: NOTICE: {main} Started working: 2 available services
04/5/20@13:53:51: DEBUG: {main_loop} active_services = 2
04/5/20@13:53:54: DEBUG: {main_loop} select returned 1
04/5/20@13:53:54: DEBUG: {svc_suspend} Suspended service tftp
04/5/20@13:53:54: DEBUG: {server_start} Starting service tftp
04/5/20@13:53:54: DEBUG: {main_loop} active_services = 1
04/5/20@13:53:54: DEBUG: {exec_server} duping 7
04/5/20@13:53:54: DEBUG: {main_loop} active_services = 1
04/5/20@13:53:54: DEBUG: {main_loop} select returned 1
04/5/20@13:53:54: DEBUG: {check_pipe} Got signal 17 (Child exited)
04/5/20@13:53:54: DEBUG: {child_exit} waitpid returned = 3697
04/5/20@13:53:54: DEBUG: {server_end} tftp server 3697 exited
04/5/20@13:53:54: INFO: {conn_free} Resuming suspended service
04/5/20@13:53:54: DEBUG: {svc_resume} Resumed service tftp
04/5/20@13:53:54: DEBUG: {child_exit} waitpid returned = -1
04/5/20@13:53:54: DEBUG: {main_loop} active_services = 2
This is xinetd 2.3.13 output (one tftp connection made):
[configuration snipped]
04/5/20@13:54:11: DEBUG: 3707 {cnf_start_services} Started service:
telnet
04/5/20@13:54:11: DEBUG: 3707 {cnf_start_services} Started service:
tftp
04/5/20@13:54:11: DEBUG: 3707 {cnf_start_services} mask_max = 7,
services_starte
d = 2
04/5/20@13:54:12: NOTICE: 3707 {main} xinetd Version 2.3.13 started
with no opti
ons compiled in.
04/5/20@13:54:12: NOTICE: 3707 {main} Started working: 2 available
services
04/5/20@13:54:12: DEBUG: 3707 {main_loop} active_services = 2
04/5/20@13:54:14: DEBUG: 3707 {main_loop} select returned 1
04/5/20@13:54:14: DEBUG: 3707 {svc_suspend} Suspended service tftp
04/5/20@13:54:14: DEBUG: 3707 {server_start} Starting service tftp
04/5/20@13:54:14: DEBUG: 3707 {main_loop} active_services = 1
04/5/20@13:54:14: DEBUG: 3708 {exec_server} duping 7
04/5/20@13:54:14: DEBUG: 3707 {main_loop} active_services = 1
04/5/20@13:54:14: DEBUG: 3707 {main_loop} select returned 1
04/5/20@13:54:14: DEBUG: 3707 {check_pipe} Got signal 17 (Child
exited)
04/5/20@13:54:14: DEBUG: 3707 {child_exit} waitpid returned = 3708
04/5/20@13:54:14: DEBUG: 3707 {server_end} tftp server 3708 exited
Note that 2.3.13 doesn't resume tftp service...
Any help will be greatly appreciated
|