we've started running our EC2 apps as services by creating an /etc/init.d/[appname] script and executing it using something like:
service [appname] start|stop|restart
When doing this, however, our apps don't have access to environment variables. How can a process started as a service access environment vars? Or, conversely, how can we set environment vars so that they can be accessed by processes running as services? Specifically, we rely on these vars to know what environment we are running in... which is good to know...