I have severals RoR websites running on my webserver and I need to run a ruby script at startup.
So, I puted a bash script in /etc/init.d witch call a ruby process. Unfortunatly that ruby process needs some stuff that isn't loaded yet.
I tried to add a sleep 300
at the beginning of my bash script, but it doesn't really help because it also affect the startup of stuff like ssh, apache, etc...
Also, I don't want to load all the ruby libraries at startup, because it would slow down the boot time.