TL:DR: In which init level /etc/profile or /etc/environment files are read?
I want to create a service (
/etc/init.d/myservice) starting a shell script located at
/opt/myservice/myservice.sh. However this location (
/opt/myservice/) is defined at installation time, so it's not a fixed location.
Let's say that I set an environment variable in
# Default-Start: 3 4 5 on
Could I safely assume that
$MYSERVICE_PATH will always be available at those init levels (3,4,5), so my init script could call