title: Replacing a running executable in linux
body: <p>I have an embedded linux system that can update itself from a USB card.  The interface program detects the USB insertion and looks for the upgraded executable.  I currently copy it to a local file and install some commands in rc5.d to copy the file over the existing exe on the next boot.  Then I have the software reboot.</p>
  
  <p>Is there a better way to do this?</p>