[systemd-devel] Service watchdog feature in state ACTIVATING ?
Umut Tezduyar Lindskog
umut at tezduyar.com
Mon Mar 2 11:50:32 PST 2015
Hi Marko,
On Sunday, March 1, 2015, Hoyer, Marko (ADITG/SW2) <mhoyer at de.adit-jv.com>
wrote:
> Hi,
>
> I ran into a use case where the activation phase of a service takes
> significantly longer than the desired watchdog period (Activating:
> 10-20secs, Watchdog: 1-5secs).
>
> I found out that the watchdog features starts not before the service is in
> state START_POST. This means for my use case that the system is blind for
> 10-20secs (whatever I set as startup timeout here).
>
> Is there any way to activate the watchdog feature already in phase
> ACTIVATING?
Why would you need this? Watchdog is to prevent system being stuck
somewhere. If activation fails within TimeoutStartSec=, systemd will put
the service in "failed to activate" state anyways.
Is waiting 20 seconds to detect the freeze is too much for your case? Is it
not possible to lower the activation time?
Umut
> I guess there should be a second watchdog configuration parameter to allow
> services to use different values for the states ACTIVATING and RUNING.
> Otherwise, people who are not interested in having a watchdog observation
> during startup will run into troubles ...
>
> Any opinions on that?
> Best regards
>
> Marko Hoyer
>
> Advanced Driver Information Technology GmbH
> Software Group II (ADITG/SW2)
> Robert-Bosch-Str. 200
> 31139 Hildesheim
> Germany
>
> Tel. +49 5121 49 6948
> Fax +49 5121 49 6999
> mhoyer at de.adit-jv.com <javascript:;>
>
> ADIT is a joint venture company of Robert Bosch GmbH/Robert Bosch Car
> Multimedia GmbH and DENSO Corporation
> Sitz: Hildesheim, Registergericht: Amtsgericht Hildesheim HRB 3438
> Geschaeftsfuehrung: Wilhelm Grabow, Katsuyoshi Maeda
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org <javascript:;>
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150302/7134bf4c/attachment.html>
More information about the systemd-devel
mailing list