Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
conf.d / env.d shared variables?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
amm
n00b
n00b


Joined: 17 Jul 2003
Posts: 1
Location: Sydney, Australia

PostPosted: Thu Jul 17, 2003 4:46 am    Post subject: conf.d / env.d shared variables? Reply with quote

I'm attempting to create an init.d script for an application that will also also need to have some environment variables exported via env.d.

Is it possible to share variables between conf.d and env.d so I only have to specify the, say, application home directory in one location?

Also, env.d files don't appear to allow variable substition. Is there some way to have the following work?
Code:
/etc/env.d/69app :

APP_HOME=/opt/app
PATH=${APP_HOME}/bin
LD_LIBRARY_PATH=${APP_HOME}/lib
MANPATH=${APP_HOME}/man


thanks,
...andrew
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum