[DRE-maint] unicorn: native systemd service

Eric Wong e at 80x24.org
Tue Jun 30 17:30:01 UTC 2015


Christos Trochalakis <yatiohi at ideopolis.gr> wrote:
> On Sat, Jun 27, 2015 at 03:05:01AM +0000, Eric Wong wrote:
> >Christos Trochalakis <yatiohi at ideopolis.gr> wrote:
> >>KillMode=mixed
> >
> >I don't think KillMode=mixed is necessary, here.  systemd can send
> >SIGQUIT to workers.
> >
> 
> Perhaps there is a race here, if a worker receives SIGQUIT first, and the
> master respawns a new worker before receiving/handling its own SIGQUIT.
> This is definitely a longshot, and will probably never happen, but
> even then every process will eventually quit gracefully.

Right. This race is possible, but workers will automatically die if
they don't have a master.
Easier just to kill the master, of course.

> >Is it possible to make systemd fire up two unicorn masters?
> >That would be a nice feature to have with socket activation.
> 
> That would be great! I am a bit surprised that specifying multiple
> services ('Service=' option) is not supported.

Can you get this feature added to systemd?



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