Enforce SGE related variables in blahd related daemons
Created by: GoncaloBorges
CREAM allows to export env variables to blah services (see bug in [1] which was fixed it in [2]) by exporting them directly in /etc/blah.conf. Since we are responsible for building the blah.conf for SGE, we can automatically export the SGE related vars, if they are defined in yaim (see related GGUS in [3]). This will solve the most frequent reason for the issue reported in [4].
[1] https://issues.infn.it/jira/browse/CREAM-105 [2] http://www.eu-emi.eu/releases/emi-3-monte-bianco/updates/-/asset_publisher/5Na8/content/update-6-08-07-2013-v-3-4-0-1#CREAM_CEMonitor_v_1_16_1 [3] https://ggus.eu/?mode=ticket_info&ticket_id=102418 [4] https://wiki.italiangrid.it/twiki/bin/view/CREAM/KnownIssues#CREAM_jobs_are_cancelled_with_st