!7 lxcfs-tools: wait a bit long time for lxcfs ready
Merge pull request !7 from zhangsong234/master
This commit is contained in:
commit
721d2ee1d5
@ -156,7 +156,8 @@ func doprestart() error {
|
|||||||
|
|
||||||
func waitForLxcfs() error {
|
func waitForLxcfs() error {
|
||||||
count := 0
|
count := 0
|
||||||
maxCount := 100
|
// bugfix: wait a bit long time for lxcfs ready
|
||||||
|
maxCount := 300
|
||||||
|
|
||||||
for count < maxCount {
|
for count < maxCount {
|
||||||
_, err := ioutil.ReadDir("/var/lib/lxc/lxcfs/proc")
|
_, err := ioutil.ReadDir("/var/lib/lxc/lxcfs/proc")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user