[DRE-maint] unicorn: native systemd service

Eric Wong e at 80x24.org
Thu Jun 25 23:49:22 UTC 2015


Dmitry Smirnov <onlyjob at debian.org> wrote:
> On Wed, 24 Jun 2015 23:26:49 Eric Wong wrote:
> > Dmitry: unicorn upstream here, is there anything in unicorn itself
> > can do to make systemd integration easier?
> 
> Thank you very much for keeping an eye on us and for all your help.
> I'm not sure if we need anything special -- let me experiment more with soft 
> restart and maybe I'll come back to you with questions. :)

No problem!  I basically live and breathe plain-text email,
so Debian is a good fit for me :)

> > I haven't had much interest or time to dig into systemd, but I'm willing
> > to put some effort into making unicorn work more smoothly with systemd
> > (and any other Free Software process managers/init systems).
> 
> Great. I'm entertaining idea of modifying init scripts to make soft restart 
> the default behaviour. Is there are any risks or drawbacks of always 
> attempting soft restart instead of normal restart? What do you think?

Probably not...  I almost regret making SIGTERM behave like nginx
instead of making SIGTERM identical to SIGQUIT.  OTOH, matching
nginx might make learning to use nginx (after learning unicorn signals)
easier.

I've certainly never used SIGTERM on unicorn or nginx myself.
Occasionally I've managed to break the RubyVM enough to require SIGKILL,
but I think using SIGTERM is unnecessary other than as "training wheels"
for nginx.



More information about the Pkg-ruby-extras-maintainers mailing list