tools/hotplug: allow tuning of xenwatchdogd arguments
authorOlaf Hering <olaf@aepfle.de>
Thu, 3 Dec 2020 06:34:36 +0000 (07:34 +0100)
committerWei Liu <wl@xen.org>
Fri, 4 Dec 2020 11:51:14 +0000 (11:51 +0000)
commit0fb6dbfaa859aae0e51a82a8d5e213bcc64b85f1
tree5923513899d95d67bd3191a23f0b7a3f548a445f
parentbe3755af37263833cb3b1c6b1f2ba219bdf97ec3
tools/hotplug: allow tuning of xenwatchdogd arguments

Currently the arguments for xenwatchdogd are hardcoded with 15s
keep-alive interval and 30s timeout.

It is not possible to tweak these values via
/etc/systemd/system/xen-watchdog.service.d/*.conf because ExecStart
can not be replaced. The only option would be a private copy
/etc/systemd/system/xen-watchdog.service, which may get out of sync
with the Xen provided xen-watchdog.service.

Adjust the service file to recognize XENWATCHDOGD_ARGS= in a
private unit configuration file.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wl@xen.org>
tools/hotplug/Linux/init.d/xen-watchdog.in
tools/hotplug/Linux/systemd/xen-watchdog.service.in