commit:     e42ccd5828de3283ff796522b38039903c5930f0
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  3 08:15:24 2017 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Feb  3 08:51:45 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e42ccd58

app-emulation/lxc: fix no-POSIX bashism

* QA Notice: shell script appears to use non-POSIX feature(s):
*    possible bashism in /etc/init.d/lxc line 98 (sleep only takes one integer):

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-emulation/lxc/files/lxc.initd.5                  | 2 +-
 app-emulation/lxc/files/{lxc.initd.5 => lxc.initd.6} | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-emulation/lxc/files/lxc.initd.5 
b/app-emulation/lxc/files/lxc.initd.5
index e5a5236..5ca5c92 100644
--- a/app-emulation/lxc/files/lxc.initd.5
+++ b/app-emulation/lxc/files/lxc.initd.5
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 

diff --git a/app-emulation/lxc/files/lxc.initd.5 
b/app-emulation/lxc/files/lxc.initd.6
similarity index 98%
copy from app-emulation/lxc/files/lxc.initd.5
copy to app-emulation/lxc/files/lxc.initd.6
index e5a5236..c3d70ea 100644
--- a/app-emulation/lxc/files/lxc.initd.5
+++ b/app-emulation/lxc/files/lxc.initd.6
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -95,7 +95,7 @@ start() {
 
        ebegin "Starting ${CONTAINER}"
        env -i ${setarch} $(which lxc-start) -l WARN -n ${CONTAINER} -f 
${CONFIGFILE} -d -o /var/log/lxc/${CONTAINER}.log
-       sleep 0.5
+       sleep 1
 
        # lxc-start -d will _always_ report a correct startup, even if it
        # failed, so rather than trust that, check that the cgroup exists.

Reply via email to