[Pkg-libvirt-maintainers] Bug#637219: Bug#636712: Bug#636712: libvirt-bin: cannot create rule since iptables tool is missing with custom nwfilters
Luca Capello
luca at pca.it
Sun Feb 24 15:03:57 UTC 2013
Hi there!
On Mon, 23 Apr 2012 15:48:52 +0200, Luca Capello wrote:
> Never mind, attached a patch against the Git repository. Please note
> that I did not publicize the fact that the hook scripts can be used for
> whatever command you would like to execute ;-)
[...]
> +if ! [ -x /sbin/iptables ]; then
> + echo "/sbin/iptables not found or not executable" 2>&1
The redirection is wrong, it should simply be ">&2", since only the
stderr will be logged:
<http://www.libvirt.org/hooks.html#return_codes>
Return codes and logging
If a hook script returns with an exit code of 0, the libvirt daemon
regards this as successful and performs no logging of it.
However, if a hook script returns with a non zero exit code, the
libvirt daemon regards this as a failure, logs it with return code
256, and additionally logs anything on stderr the hook script returns.
Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20130224/39ae64d7/attachment.pgp>
More information about the Pkg-libvirt-maintainers
mailing list