Perry Myers
2008-Oct-16 15:01 UTC
[Ovirt-devel] [PATCH node] Fix install script to start ntp and iptables in case they are not already
time sync is necessary or kerberos won't work correctly iptables needs to be started so that the lokkit -t ovirtbr0 command is persisted across reboots Signed-off-by: Perry Myers <pmyers at redhat.com> --- ovirt-listen-awake/ovirt-install-node | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ovirt-listen-awake/ovirt-install-node b/ovirt-listen-awake/ovirt-install-node index 95ba4de..2ca4cf7 100644 --- a/ovirt-listen-awake/ovirt-install-node +++ b/ovirt-listen-awake/ovirt-install-node @@ -128,6 +128,9 @@ elif [ "$1" = "stateful" ]; then chkconfig ovirt-listen-awake on chkconfig collectd on chkconfig libvirt-qpid on + chkconfig iptables on + chkconfig ntpdate on + chkconfig ntpd on backup_file /etc/sysconfig/libvirtd backup_file /etc/libvirt/qemu.conf @@ -144,6 +147,8 @@ elif [ "$1" = "stateful" ]; then # 49152-49216:tcp (libvirt migration) lokkit -t ovirtbr0 + service iptables restart + # Check if any domains are active before restarting libvirtd, since it will # kill them. Header information from virsh list is 2 lines, and 1 line for # footer. So > 3 lines means domains are running @@ -159,6 +164,7 @@ elif [ "$1" = "stateful" ]; then service collectd restart service ovirt-listen-awake restart service libvirt-qpid restart + service ntpd restart else usage exit 1 -- 1.5.5.1