How to debug a launchd daemon ? (tftp)
Something is listening on port 69, and doing an interactive tftp from another node shows that something acting as tftp is running. But ps -Ac | grep tftp yields nothing on the xserve.
The tftp transfers all yield an access violation.
However, I cannot seem to find where any of the information is logged. I had -d and -l as arguments in the .plist to ensure there was logging, but I couldn't find anything. And without a log file, it is hard to determine what files the tftp server is trying to access with failure.
Do I need to change the syslog.conf file so that it knows about tftp ? Is this why I am not seeing anything ?
Also, from what I read, it is normal that tftpd doesn't appear in a "ps -Ac" output. Is that correct ? (I tried with and without "RunAtLoad" )
I tried the -u argument with a non privileged username. What command need I use to verify that tftpd is im fact running under that username and trying to access files as that username ?
With the following:
/usr/libexec/tftpd -u tftp -l -d -s /private/tftpboot
Is it correct to state that I would need to do a chown tftp /private/tftpboot (and all files below that) because the tftp daemon would try to access those files as that "tftp" username ?
Many since Mac+