ctdb-scripts: LVS eventscript error redirection improvements
authorMartin Schwenke <martin@meltin.net>
Thu, 7 Apr 2016 03:55:08 +0000 (13:55 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 15 Apr 2016 03:57:17 +0000 (05:57 +0200)
commita0ef57fe840583383205eb561c45baa0ad870246
treeba12be1af2e8246b88bb508a7c3462ad39ebeace
parent600211d11b8c6dff34cc1e0d6f332fdf85ca9a34
ctdb-scripts: LVS eventscript error redirection improvements

Basic error redirection improvements before writing tests.

Deleting the service during "startup" will usually fail because the
service has never been setup, so redirect output to avoid logging an
error.

Similarly, deleting the service in "ipreallocated" will always fail
the first time, which would cause an error to be logged.  Given the
simplicity of the script, there's no sane way to avoid the error
sometimes and log it if it actually matters.  This could potentially
be tidied up in the future by making 91.lvs stateful, in a similar way
to 11.natgw.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/91.lvs