Vinzenz Feenstra has uploaded a new change for review.

Change subject: agent: condrestart should check also for pidfile size
......................................................................

agent: condrestart should check also for pidfile size

Change-Id: Ia2dff34095430147116491337ea528594cb6ab04
Bug-Url: https://bugzilla.redhat.com/977943
Signed-off-by: Vinzenz Feenstra <[email protected]>
---
M ovirt-guest-agent/ovirt-guest-agent
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-guest-agent 
refs/changes/65/16565/1

diff --git a/ovirt-guest-agent/ovirt-guest-agent 
b/ovirt-guest-agent/ovirt-guest-agent
index 5528516..29d5375 100644
--- a/ovirt-guest-agent/ovirt-guest-agent
+++ b/ovirt-guest-agent/ovirt-guest-agent
@@ -72,7 +72,7 @@
         ;;
 
     condrestart)
-        if [ -f ${pidfile} ] ; then
+        if [ -s ${pidfile} ] ; then
             stop
             start
         fi


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia2dff34095430147116491337ea528594cb6ab04
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-guest-agent
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to