Use systemd for mounting chroot directories
Rather than using a bash script it would be better to use systemd because currently it appears that when a machine boots not all the mounts have been mounted and then you get issues like Apache not finding sockets and it then needs to be stopped and started again.
Edited by Chris Croome