e.g. for user stefan, starting two different applications, located under /apps/APPLICATION/prod/current.
This script is very useful, because it is run at startup of server, so no 503 anymore.
Put this script under /etc/init.d/ and make it executable chmod +x /etc/init.d/rails_apps