hpcugent / hanythingondemand

hanythingondemand provides a set of scripts to easily set up an ad-hoc Hadoop cluster through PBS jobs
https://hod.readthedocs.org
GNU General Public License v2.0
12 stars 6 forks source link

reloading of modules in screen.conf is not compatible with Lmod #160

Open boegel opened 8 years ago

boegel commented 8 years ago

the screen.conf in the available HOD distributions contains this:

ExecStart=screen -dmS HODclient bash -c 'module load -f $$(module list -t 2>&1 | sed 1,2d ); exec bash'

this approach of relying on the output format of module list -t to reload a list of loaded modules does not work with Lmod

An alternative is to use $LOADEDMODULES instead.