title: How to force a service restart?
body: <p>I have a background service that sometimes gets killed by the OS when it is running low on memory. </p>
  
  <ol>
  <li>How to simulate this behaviour so I can debug it? </li>
  </ol>
  
  <p>The dev guide simply says "if your service is started, then you must design it to gracefully handle restarts by the system. If the system kills your service, it restarts it as soon as resources become available again".</p>
  
  <ol start="2">
  <li>What's the sequence of calls from when it gets killed to when it finishes restarting?</li>
  </ol>
  
  <p>On a side (related) question, what happens to an actively running AsyncTask started in the service when the service gets killed by the OS, i.e., without service.onDestroy getting called? Does it keep running or get ripped silently along with the service?</p>