[node-patches] Change in ovirt-node[master]: fucntions: Make reboot async

fabiand at fedoraproject.org fabiand at fedoraproject.org
Mon Sep 3 07:21:40 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: fucntions: Make reboot async
......................................................................

fucntions: Make reboot async

Previosuly reboot was called synchronously, now it's called
asynchronously to gice the caller time to finish cleanly (e.g. when
connected via ssh).

rhbz#847103

Change-Id: I36ed78ee0096b5ae29874e47303e0ceaad042023
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-functions
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/97/7697/1

diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index 1da0fca..9dc4ef7 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -933,7 +933,9 @@
             log "Hook \"$hook\" failed."
         fi
     done
-    /sbin/reboot
+
+    # Reboot async, https://bugzilla.redhat.com/show_bug.cgi?id=847103
+    nohup bash -c '( sleep 10 && /sbin/reboot )' < /dev/null > /dev/null 2>&1
 }
 
 # chkconfig_persist <servicename>


--
To view, visit http://gerrit.ovirt.org/7697
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I36ed78ee0096b5ae29874e47303e0ceaad042023
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list