commit 08700db1fa9b7bd1e08973aa87fdc252309dbded
Author: mis <[email protected]>
Date:   Sun Aug 21 18:08:09 2016 +0200

    - do not create empty pidfile

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

---- gitweb:

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

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

Reply via email to