[Ovirt-devel] [PATCH node] set hostname with ovirt-config-hostname without requiring a network restart

Alan Pevec apevec at gmail.com
Mon Apr 27 13:44:49 UTC 2009


On Mon, Apr 27, 2009 at 3:34 PM, Joey Boggs <jboggs at redhat.com> wrote:

> ---
>  scripts/ovirt-config-hostname |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/ovirt-config-hostname b/scripts/ovirt-config-hostname
> index 7f51a44..c9bead0 100755
> --- a/scripts/ovirt-config-hostname
> +++ b/scripts/ovirt-config-hostname
> @@ -15,6 +15,7 @@ function set_hostname {
>     augtool <<EOF
>  set /files$HOSTNAME_FILE/HOSTNAME "$1"
>  EOF
>

to be safe, run it only if augtool succeeded:
rc=$?
if [ $rc = 0 ]; then
  /bin/hostname "$1"
  rc=$?
fi

>     stop_log
>     return $rc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090427/8439babc/attachment.htm>


More information about the ovirt-devel mailing list