Re: [systemd-devel] Zero downtime restart of Web application (Nginx, Puma, JRuby)

2016-07-14 Thread Kai Krakow
Am Sat, 18 Jun 2016 13:56:03 +0200 schrieb Paul Menzel : > Dear systemd folks, > > > the setup is as follows. > > Nginx is used as the Web server, which communicates with a Ruby on > Rails application over a socket. Puma [1] is used as the application > server. > > Nginx and Puma are managed b

Re: [systemd-devel] Zero downtime restart of Web application (Nginx, Puma, JRuby)

2016-07-14 Thread Kai Hendry
On Thu, 14 Jul 2016, at 05:07 PM, David Timothy Strauss wrote: > Dokku would be about a 5-10 lines of shell script with services running > in > systemd. I would love to see that 10 lines of shell you claimed, but I think you might be underestimating the fine work that went into Dokku! Cheers, ___

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-14 Thread Andrei Borzenkov
14.07.2016 15:34, Holger Kiehl пишет: > Hello, > > I am new to systemd and the maintainer of the file distribution software > AFD (http://www.dwd.de/AFD) and I am trying to adapt this application > to systemd. The problem I am unable to solve is that doing a reboot, > poweroff or halt, all process

[systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-14 Thread Holger Kiehl
Hello, I am new to systemd and the maintainer of the file distribution software AFD (http://www.dwd.de/AFD) and I am trying to adapt this application to systemd. The problem I am unable to solve is that doing a reboot, poweroff or halt, all process get a SIGTERM before systemd calls the command su

Re: [systemd-devel] Wishlist: HandleLidSwitchDocked ... when powered?

2016-07-14 Thread Mantas Mikulėnas
On Thu, Jul 14, 2016 at 2:42 PM, Michael Biebl wrote: > 2016-07-14 9:28 GMT+02:00 Mantas Mikulėnas : > > On Thu, Jul 14, 2016 at 5:47 AM, Kai Hendry > wrote: > >> > >> Hi there, > >> > >> I want my T460s machine to suspend on lid close only when it's not > >> charging off mains. > >> > >> I've l

Re: [systemd-devel] Wishlist: HandleLidSwitchDocked ... when powered?

2016-07-14 Thread Michael Biebl
2016-07-14 9:28 GMT+02:00 Mantas Mikulėnas : > On Thu, Jul 14, 2016 at 5:47 AM, Kai Hendry wrote: >> >> Hi there, >> >> I want my T460s machine to suspend on lid close only when it's not >> charging off mains. >> >> I've looked over >> https://www.freedesktop.org/software/systemd/man/logind.conf.h

Re: [systemd-devel] Zero downtime restart of Web application (Nginx, Puma, JRuby)

2016-07-14 Thread David Timothy Strauss
Dokku would be about a 5-10 lines of shell script with services running in systemd. On Wed, Jul 13, 2016, 20:41 Kai Hendry wrote: > On Sat, 18 Jun 2016, at 07:56 PM, Paul Menzel wrote: > > Is that possible by just using systemd, or is a load balancer like > > HAProxy or a special NGINX configura

Re: [systemd-devel] Wishlist: HandleLidSwitchDocked ... when powered?

2016-07-14 Thread Mantas Mikulėnas
On Thu, Jul 14, 2016 at 5:47 AM, Kai Hendry wrote: > Hi there, > > I want my T460s machine to suspend on lid close only when it's not > charging off mains. > > I've looked over > https://www.freedesktop.org/software/systemd/man/logind.conf.html & > https://wiki.archlinux.org/index.php/Power_manag