I use Ubic (you can download a .deb that sets up Ubic on any
Ubuntu at:
https://launchpad.net/~berekuk/+archive/ubuntu/ubic/+files/ubic_1.52-2_all.deb
) and then this: https://metacpan.org/pod/Ubic::Service::Hypnotoad
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.
I've noticed that sometimes my hypnotoad just dies, no warning.
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscribe@googlegroups.com.
Systemd has an option for this, see Restart= here https://www.freedesktop.org/software/systemd/man/systemd.service.html
Timeouts include missing the watchdog "keep-alive ping" deadline
First of all, to make software watchdog-supervisable it needs to be patched to send out "I am alive" signals in regular intervals in its event loop. Patching this is relatively easy. First, a daemon needs to read the WATCHDOG_USEC= environment variable. If it is set, it will contain the watchdog interval in usec formatted as ASCII text string, as it is configured for the service. The daemon should then issuesd_notify("WATCHDOG=1") calls every half of that interval. A daemon patched this way should transparently support watchdog functionality by checking whether the environment variable is set and honouring the value it is set to.
--
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 terminated by a signal (e.g. SIGKILL, SIGSEGV). As for supporting it in Hypnotoad itself, it would be difficult to support via a plugin since the manager process (which does not run the IOLoop) would need to be sending the notify. And I'm doubtful if such a systemd-specific feature would be something the team wants to implement in core.