Heya,

I ve recently adopted the package and i am looking to fix this issues.
The problem is that i ve never written init scripts yet and right now i
don't have much time.. So please bear with me a little more, i ll try to
rewrite this soon.

There are some init scripts here
https://github.com/Supervisor/initscripts/ i ll check as well..

Cheers,

Orestis
On 12/04/2015 03:26 PM, Dmitry Smirnov wrote:
> 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...
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to