I'm trying to create my own Linux distro in LiveCD format. I have put a webserver in my Linux LiveCD, and make it automatically startup during boot time.
I have made the LiveCD to auto-login to desktop environment without requiring user to type in their password.
Now, I would like to configure the web browser to automcatically pop-up during startup and show the homepage of the webserver.
I have tried different methods but i found that when user boot up the LiveCD, most of the time the desktop environment and the web browser will be shown before the webserver finished starting up. As a result, the web browser will show an error page "webpage not found/not available".
After a few seconds (after the webserver finished starting up), if the user click at the refresh button, they will be able to see the homepage.
How can I make sure that the webserver has been started up before the desktop environment is shown to the user?
Thanks.