[GE users] placement of shadowd related env variables

Olesen, Mark Mark.Olesen at emcontechnologies.com
Tue Dec 9 08:27:36 GMT 2008

> > What would be the most appropriate place for these environmental
> > variables:
> > ?
> >
> > Would settings.{sh,csh} files would be the proper place for these
> > variables?
> To have all in a central place I would put it in /etc/init.d/
> sgemaster But you have to take care, when you update SGE and this
> script.

Similar to Reuti, we have the information added into the /etc/init.d/
files, but only source them from there:

# LSB compliant exit status - program is not configured
if [ ! -d "$sge_common" ]; then
   echo "cannot locate '\$SGE_ROOT/\$SGE_CELL/common' ($sge_common)"
   exit 6
# LSB compliant exit status - program is not configured
if [ ! -s $sge_common/bootstrap ]; then
   echo "cannot locate '$sge_common/bootstrap'"
   exit 6

# source optional configuration file(s) for customized environment
for i in $sge_common/settings.cfg
   [ -r $i ] && . $i

I find this centralized approach a bit easier to maintain.
Of course, an RFE to add the above lines would solve the upgrade issues
once and for all.

This e-mail message and any attachments may contain 
legally privileged, confidential or proprietary Information, 
or information otherwise protected by law of EMCON 
Technologies, its affiliates, or third parties. This notice 
serves as marking of its "Confidential" status as defined 
in any confidentiality agreements concerning the sender 
and recipient. If you are not the intended recipient(s), 
or the employee or agent responsible for delivery of this 
message to the intended recipient(s), you are hereby 
notified that any dissemination, distribution or copying 
of this e-mail message is strictly prohibited. 
If you have received this message in error, please 
immediately notify the sender and delete this e-mail 
message from your computer.


To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].

More information about the gridengine-users mailing list