Browse Source

wait for systemctl start to finish prior to check logs

Toastie 6 months ago
parent
commit
fe14792ff0
1 changed files with 3 additions and 6 deletions
  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