Supervisor's init script is incredibly sloppy and have many problems... :(

I believe this particular issue is because init.d script stops daemon without 
"--retry" passed to "start-stop-daemon".

See start-stop-daemon(8) which says:

  If --retry is  specified,  then start-stop-daemon will check that the
  process(es) have terminated.

I think we need something like the following commit:

 https://anonscm.debian.org/cgit/pkg-go/packages/etcd.git/commit/?id=83eb9fb1

But also remove "sleep" from restart, keep one invocation of "start-stop-
daemon", replace "echo" with LSB-compliant functions, drop "force-stop" 
command and rewrite most of the very ugly and buggy init script...

-- 
Best wishes,
 Dmitry Smirnov
 GPG key : 4096R/53968D1B

---

Good luck happens when preparedness meets opportunity.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to