commit b443d6639f623e1d125a6ee398d7f12ced747850
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Aug 21 02:21:49 2016 +0300

    init: use only awk and do not hide errors

 lxd.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lxd.init b/lxd.init
index 4f2b14e..41f1bfa 100755
--- a/lxd.init
+++ b/lxd.init
@@ -46,7 +46,7 @@ start() {
        ntry=0
        while [ -z "$pid" -a $ntry -lt 5 ]; do
                [ -z "$pid" ] && sleep 1
-               pid=$(lxc info 2>/dev/null | grep serverpid: | awk '{print $2}')
+               pid=$(lxc info | awk '/serverpid:/{print $2}')
                echo $pid > $pidfile
                ntry=$(($ntry+1))
        done
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxd.git/commitdiff/b443d6639f623e1d125a6ee398d7f12ced747850

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to