[Pkg-gridengine-devel] Bug#579382: gridengine-wrapper overwrites environment variables SGE_CELL and SGE_ROOT
Riccardo Murri
riccardo.murri at gmail.com
Tue Apr 27 13:23:33 UTC 2010
Package: gridengine-common
Version: 6.2-4
Contrary to what the comments at the beginning of the script say,
gridengine-wrapper reads "/etc/default/gridengine" first, so it
overwrites any environment setting of SGE_CELL and SGE_ROOT.
For instance, the following invocation will not work (contrary to
expected SGE usage as documented in the manpage):
env SGE_CELL=alternate_cell qstat -f
A fix could be to have "/etc/default/gridengine" provide
DEFAULT_SGE_ROOT and DEFAULT_SGE_CELL instead and leave
"gridengine-wrapper" as is; but then *every* SGE-related program
(incl. daemons) should be started through "gridengine-wrapper".
Ugly workarounds for the current version:
* place environment settings in a file and invoke::
env CONFIG_PATH=file qstat ...
* or replace SGE_CELL=value with SGE_CELL=${SGE_CELL:-value} in
"/etc/default/gridengine"
Thanks for packaging SGE!
Best regards,
Riccardo
More information about the Pkg-gridengine-devel
mailing list