title: How to create a daemon program with erlang?
body: <p>I prepare to develop one heartbeat program, which need to send udp packet every 5s.</p>
  
  <ol>
  <li><p>How to sleep 5s in erlang or is there sleep(5) function to be used?</p></li>
  <li><p>How to make it run in background?</p></li>
  </ol>