title: Implementing watchdog for docker services under sysd
body: <p>I'm currently working on a docker project where, I need to implement watchdog. As Docker containers end up running as child processes of Docker daemon, they are in a cgroup different from that of the service, the sd_notify events won't be processed by sysd. For that I stumbled upon <a href="https://github.com/coreos/sdnotify-proxy" rel="nofollow">https://github.com/coreos/sdnotify-proxy</a>.
  Normally to add watchdog I'll do,</p>
  
  <pre><code>[Unit]
  Description=My Little Daemon
  Documentation=man:mylittled(8)
  
  [Service]
  ExecStart=/usr/bin/mylittled
  WatchdogSec=30s
  Restart=on-failure
  StartLimitInterval=5min
  StartLimitBurst=4
  StartLimitAction=reboot-force
  </code></pre>
  
  <p>But how should it be implemented with <code>sdnotify-proxy</code>. I'm totally newbie to this. Any help would greatly be appreciated.</p>