Re: [Mojolicious] Re: Deployment: launch hypnotoad on boot

2016-08-04 Thread Stefan Adams
On Thu, Aug 4, 2016 at 8:27 PM, Dan Book wrote: > The Watchdog is an optional feature, but if you enable it (with > WatchdogSec=), the Restart option will include that condition. Otherwise > the on-failure setting is usually sufficient and will restart it when a > systemd

Re: [Mojolicious] Re: Deployment: launch hypnotoad on boot

2016-08-04 Thread Dan Book
The Watchdog is an optional feature, but if you enable it (with WatchdogSec=), the Restart option will include that condition. Otherwise the on-failure setting is usually sufficient and will restart it when a systemd operation times out or the process exits with a non-zero exit code or is

Re: [Mojolicious] Re: Deployment: launch hypnotoad on boot

2016-08-04 Thread Stefan Adams
On Thu, Aug 4, 2016 at 7:41 PM, Dan Book wrote: > Systemd has an option for this, see Restart= here https://www.freedesktop. > org/software/systemd/man/systemd.service.html > Thanks, Dan! I understand that a daemon needs to be written to specifically handle the watchdog ping.

Re: [Mojolicious] Re: Deployment: launch hypnotoad on boot

2016-08-04 Thread Dan Book
Systemd has an option for this, see Restart= here https://www.freedesktop.org/software/systemd/man/systemd.service.html On Thu, Aug 4, 2016 at 7:42 PM, Stefan Adams wrote: > I've noticed that sometimes my hypnotoad just dies, no warning. Is there > a supported directive for

Re: [Mojolicious] Re: Deployment: launch hypnotoad on boot

2016-08-04 Thread Stefan Adams
I've noticed that sometimes my hypnotoad just dies, no warning. Is there a supported directive for systemd to allow systemd to auto-restart the service if the process hangs or disappears? On Sat, Jul 30, 2016 at 4:15 PM, sri wrote: > Mojolicious 7.01 will have better systemd

Re: [Mojolicious] Re: Emulate CGI.pm (CGI::param mostly) in Mojolicious...

2016-08-04 Thread Peter Valdemar Mørch
Thanks for all your pointers. I'll see what makes most sense when I get my hands dirty. For many reasons, it probably is a good idea to refactor our shared utilities to take query parameters as arguments somehow instead of extracting them from $c or global context anyway, so thats my plan for