Re: [DRE-maint] unicorn: native systemd service

2015-07-08 Thread Christos Trochalakis
Christos Trochalakis yati...@ideopolis.gr wrote: On Sat, Jun 27, 2015 at 03:05:01AM +, Eric Wong wrote: 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

Re: [DRE-maint] unicorn: native systemd service

2015-07-07 Thread Eric Wong
Christos Trochalakis yati...@ideopolis.gr wrote: On Sat, Jun 27, 2015 at 03:05:01AM +, Eric Wong wrote: Christos Trochalakis yati...@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

Re: [DRE-maint] unicorn: native systemd service

2015-06-30 Thread Christos Trochalakis
On Sat, Jun 27, 2015 at 03:05:01AM +, Eric Wong wrote: Christos Trochalakis yati...@ideopolis.gr wrote: On Thu, Jun 25, 2015 at 11:26:26PM +, Eric Wong wrote: With socket activation, you should just be able to kill unicorn using SIGQUIT (just master, or even all workers) and restart

Re: [DRE-maint] unicorn: native systemd service

2015-06-27 Thread Christos Trochalakis
Hello all, I have recently migrated our main ruby application to systemd implementing zero downtime upgrades. systemd doesn't like replacing the binary on the fly. There is one exception to this, services with PIDFile. When PIDFile is set, systemd reads it when the main process exits and

Re: [DRE-maint] unicorn: native systemd service

2015-06-27 Thread Eric Wong
Christos Trochalakis yati...@ideopolis.gr wrote: On Thu, Jun 25, 2015 at 11:26:26PM +, Eric Wong wrote: With socket activation, you should just be able to kill unicorn using SIGQUIT (just master, or even all workers) and restart without ever dropping a connection. I do NOT suggest using

Re: [DRE-maint] unicorn: native systemd service

2015-06-27 Thread Eric Wong
+Cc unicorn-public list Christos Trochalakis chris...@skroutz.gr wrote: Hello all, I have recently migrated our main ruby application to systemd implementing zero downtime upgrades. systemd doesn't like replacing the binary on the fly. There is one exception to this, services with

Re: [DRE-maint] unicorn: native systemd service

2015-06-27 Thread Eric Wong
Dmitry Smirnov only...@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

Re: [DRE-maint] unicorn: native systemd service

2015-06-26 Thread Christos Trochalakis
On Thu, Jun 25, 2015 at 11:26:26PM +, Eric Wong wrote: +Cc unicorn-public list Christos Trochalakis chris...@skroutz.gr wrote: Hello all, I have recently migrated our main ruby application to systemd implementing zero downtime upgrades. systemd doesn't like replacing the binary on the

Re: [DRE-maint] unicorn: native systemd service

2015-06-25 Thread Dmitry Smirnov
On Fri, 26 Jun 2015 00:34:36 Hleb Valoshka wrote: So if it still supports sysv scripts and native services does not provide additional functions why to add useless native support which breaks enhanced sysv features? Because native support works better than SysV emulation. Because supporting

Re: [DRE-maint] unicorn: native systemd service

2015-06-25 Thread Hleb Valoshka
On 6/25/15, Dmitry Smirnov only...@debian.org wrote: Not sure... I know systemd can invoke init.d script but only standard {start| stop|restart|status} functions and only with the absence of native .service file. So if it still supports sysv scripts and native services does not provide

Re: [DRE-maint] unicorn: native systemd service

2015-06-25 Thread Dmitry Smirnov
Hi Christos, On Thu, 25 Jun 2015 11:50:57 Christos Trochalakis wrote: I have recently migrated our main ruby application to systemd implementing zero downtime upgrades. [...] Thank you for a very useful hints. I'll update .service file as soon as I try soft restart under systemd. On more

Re: [DRE-maint] unicorn: native systemd service

2015-06-25 Thread Dmitry Smirnov
Hi Eric, 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

Re: [DRE-maint] unicorn: native systemd service

2015-06-25 Thread Eric Wong
Adding unicorn-pub...@bogomips.org to Cc: Those of you who haven't followed along on the unic...@packages.debian.org list can catch up here: http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/2015-June/024539.html Dmitry: unicorn upstream here, is there anything in unicorn

Re: [DRE-maint] unicorn: native systemd service

2015-06-24 Thread Dmitry Smirnov
On Wed, 24 Jun 2015 12:02:46 Hleb Valoshka wrote: On 6/23/15, Dmitry Smirnov only...@debian.org wrote: It seems that --update-rcd-params=disable (or remove) is the solution. I tried that but it does not work and produces error on installation of the package... I'll test it too when I

Re: [DRE-maint] unicorn: native systemd service

2015-06-22 Thread Hleb Valoshka
On 6/22/15, Dmitry Smirnov only...@debian.org wrote: Perhaps it might be better to make sure that daemon is not enabled after first install of the package? It sounds reasonably. I realised that dh_installinit --no-start still enables automatic start of daemon so I've added workaround to

Re: [DRE-maint] unicorn: native systemd service

2015-06-22 Thread Dmitry Smirnov
On Mon, 22 Jun 2015 19:45:23 Hleb Valoshka wrote: It seems that --update-rcd-params=disable (or remove) is the solution. I tried that but it does not work and produces error on installation of the package... I don't want to lose transparent upgrade feature and it's not possible with default

Re: [DRE-maint] unicorn: native systemd service

2015-06-21 Thread Hleb Valoshka
On 6/19/15, Dmitry Smirnov only...@debian.org wrote: I took liberty to commit native systemd service to unicorn repository. Thanks! I hope it works properly (I can't test as I'm not a systemd user). But I have several comments regarding your changes: * You have removed CONFIGURED variable,

Re: [DRE-maint] unicorn: native systemd service

2015-06-21 Thread Dmitry Smirnov
On Sun, 21 Jun 2015 18:19:44 Hleb Valoshka wrote: I hope it works properly (I can't test as I'm not a systemd user). I've been using unicorn.service for some weeks and it works for me although my local .service file also creates directory for .sock file and set permissions on it... But I

[DRE-maint] unicorn: native systemd service

2015-06-18 Thread Dmitry Smirnov
Dear Hleb, Thank you for maintaining unicorn in Debian. I took liberty to commit native systemd service to unicorn repository. I shall be happy to answer all your questions and hopefully help little more with Unicorn maintenance, if time allows. Please let me know what you think. -- Regards,