title: Does systemd support on-failure restarts for forking daemons?
body: <p>Assume I have the following in my systemd unit file:</p>
  
  <pre><code>Type=forking
  Restart=on-failure
  </code></pre>
  
  <p>Parent process exits with status 0 (child launched successfully).  At some later point, the child dies with a non-zero status.  What happens?  systemd can track the child daemon process PID:</p>
  
  <pre><code>Process: 1768 ExecStart=/bin/mydaemon (code=exited, status=0/SUCCESS)
  Main PID: 1770 (mydaemon)
  </code></pre>
  
  <p>Is "Restart=on-failure" only looking at the parent exit status, or also the child?</p>