XNBD-WATCHDOG(1)
================
:man source:   {manual_package}
:man version:  {manual_version}
:man manual:   {manual_title}


NAME
----
xnbd-watchdog - Watch a NBD device as started by xnbd-client(1)


SYNOPSIS
--------
*xnbd-watchdog* [--timeout 'SECONDS'] [--interval 'SECONDS']
    [--recovery-command 'COMMAND'] [--recovery-command-reboot] ['NBD_DEVICE']


DESCRIPTION
-----------
With the *xnbd-watchdog*, you can monitor a running xnbd-client and trigger
actions on failure.


OPTIONS
-------
The following options are supported:

*--timeout* 'SECONDS'::
    Triggers the recovery command action if the watchdog process is
    unable to connect to the 'NBD_DEVICE' within the given timeout. If not
    given, this defaults to 10 seconds.

*--interval* 'SECONDS'::
    Specifies the polling interval between probes. If not given, this
    defaults to 10 seconds.

*--recovery-command* 'COMMAND'::
    If given, the 'COMMAND' is executed if the watchdog is unable to connect
    the NBD device after timeout exceeded.

*--recovery-command-reboot*::
    This argument is a shortcut for *--recovery-command* "reboot now".
    That is, it will reboot the server upon failure.


POSITIONAL ARGUMENTS
--------------------
The following positional options are supported:

'NBD_DEVICE'::
    The local nbd-device to be associated with the remote xnbd-server.


SEE ALSO
--------
xnbd-server(8)


AUTHOR
------
include::author_xnbd.txt[]

include::author_toell.txt[]
