Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ftpd/inetd debugging (service terminated)



Jul 19 15:20:28 localhost inetd[4925]: ftp/tcp server failing (looping), service terminated

I get the message above in the console, and a process that is calling ftp hangs during a delete call. I want to get more details, so I am changing /etc/inetd.conf's ftpd called to ftpd -ll from ftp -l, according to instructions in the ftpd man page. I then kill inetd, and start it again so it will read the new configuration, and try again. I'm still not getting any more info in the console when this happens from making this conf change. Has Darwin or MacOS X, got some new way to change configuration other than the conf files for inted and ftpd?

When I kill the ftp process, the script process that was calling ftp dies, but it leaves a close wait behind in netstat and all ftp's are refused until I kill and restart inetd. If I kill inetd first everything closes cleanly. When I kill the inetd and start it again quickly enough, the script just moves on to the next ftp transfer, and delete, and continues until it hits the next hangup (through several successful deletes). How can my script time out on this ftp call and log an error and move on? I'm doing this in a ksh script with something like:

ftp -inv ${host} <<eof > delete_status.log
user ${ftpuser} ${ftppass}
cd ${dir}
delete ${file}
bye
eof

I even found that this sometimes happens on a get. I put a sleep 1 after each get and delete finish, and this eliminates the problem, but this slows my script down too much, when stretched out over the many iterations of get and delete that it does (I have to get the logs from over 250 machines with this script)

Scott




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.