I've a RaspberryPi, and I would like to run a nodeJS script (running a server), and then open Chrome when the server has been launched.Currently, I launch my nodeJS script thanks to a script in /etc/init.d and chromium thanks to a line in  /etc/xdg/lxsession/LXDE/autostartThe problem is chromium is launched BEFORE my server is up, thus, it displays an error and I have to manually refresh the page in order to make it work.Do you have any tips on how to handle this situation?pi@legalpi ~ $ uname -aLinux legalpi 4.0.7+ #802 PREEMPT Wed Jul 8 17:35:23 BST 2015 armv6l GNU/Linux
Launch node & chrome after system boot
raspberry pi;init;node.js
Invoke chromium on a local HTML file that looks like this:<script>function vico_func(){    location = URL_to_your_server;}setTimeout(vico_func, 3000);</script>setTimeout(some_function, delay)is like the at command  it schedules the functionto be called in the future, after a delay,which is expressed in milliseconds.So the above will cause chromium to go to your server pagethree seconds after it is started.You can condense this a little, using an anonymous function:<script>setTimeout(function() { location = URL_to_your_server; }, 3000);</script>