title: Terminating TFTPD after file transfer
body: <p>I am using <code>inetutils</code> <code>tftpd</code> which is started via <code>inetd</code> using the following entry in <code>inetd.conf</code>:</p>
  
  <pre><code>tftp       dgram   udp     wait    root   /bin/tftpd -p -u root -s /home
  </code></pre>
  
  <p>(ignore the use of root account and /home directory, it's just for testing purposes, it will be changed later).</p>
  
  <p><code>inetd</code> version is <code>inetd (GNU inetutils) 1.7</code></p>
  
  <p><code>tftpd</code> version is <code>tftp-hpa 5.2, with remap, with tcpwrappers</code></p>
  
  <p>Everything works fine, but the problem is that I don't have any information about the file transfer status. Having in mind that I have more than 10 scripts that rely on <code>tftpd</code>, I need to either:</p>
  
  <ul>
  <li><p>terminate <code>tftpd</code> after the file transfer or error (because it keeps running in the background doing nothing)</p></li>
  <li><p>make it display file transfer status in a way that I can <code>grep</code> <code>sed</code> or at least <code>$?</code></p></li>
  </ul>
  
  <p>Is this possible, and if not, what other <code>tftpd</code> server should I use?</p>