ソースを参照

wait for systemctl start to finish prior to check logs

Toastie 1 年間 前
コミット
fe14792ff0
1 ファイル変更3 行追加6 行削除
  1. 3 6
      startup.sh

+ 3 - 6
startup.sh

@@ -21,12 +21,9 @@ mount --verbose --bind /srv/data/guests/etc/libvirt  /etc/libvirt
 # 4. Start docker and libvird 
 # Those services should have been disabled
 # systemctl disable docker libvirtd libvirt-guests
-systemctl start docker &
-sleep 2 && systemctl status --no-pager docker
-systemctl start libvirtd &
-sleep 2 && systemctl status --no-pager libvirtd
-systemctl start libvirt-guests &
-sleep 2 && systemctl status --no-pager libvirt-guests 
+systemctl start docker && sleep 2 && systemctl status --no-pager docker
+systemctl start libvirtd && sleep 2 && systemctl status --no-pager libvirtd
+systemctl start libvirt-guests && sleep 2 && systemctl status --no-pager libvirt-guests 
 
 # 4. Fix forward chain which was set to default deny by docker
 # so our KVM containers on br0 have access to the network