diff options
author | brooks <brooks@FreeBSD.org> | 2008-02-15 08:09:33 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2008-02-15 08:09:33 +0800 |
commit | 8eb5ae93b13ffa1e010d3ffad8d046b9a928f419 (patch) | |
tree | 442c2ed0e5d3458b7ecd96cf2f1bbced0a751347 /sysutils/sge60 | |
parent | 58016a8df1b01b3a2c3b4fafb7d5639093aed01f (diff) | |
download | freebsd-ports-gnome-8eb5ae93b13ffa1e010d3ffad8d046b9a928f419.tar.gz freebsd-ports-gnome-8eb5ae93b13ffa1e010d3ffad8d046b9a928f419.tar.zst freebsd-ports-gnome-8eb5ae93b13ffa1e010d3ffad8d046b9a928f419.zip |
Attempt to make execd startup more reliable by creating the spool directory
and per-host directories before starting execd.
Diffstat (limited to 'sysutils/sge60')
-rw-r--r-- | sysutils/sge60/Makefile | 1 | ||||
-rw-r--r-- | sysutils/sge60/files/sge.sh.in | 22 |
2 files changed, 19 insertions, 4 deletions
diff --git a/sysutils/sge60/Makefile b/sysutils/sge60/Makefile index 0f458d8d7279..1b7cc6807271 100644 --- a/sysutils/sge60/Makefile +++ b/sysutils/sge60/Makefile @@ -7,6 +7,7 @@ PORTNAME= sge PORTVERSION= ${SGE_VERSION} +PORTREVISION= 1 CATEGORIES= sysutils parallel MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/163/ MASTER_SITES+= ${MASTER_SITE_LOCAL} diff --git a/sysutils/sge60/files/sge.sh.in b/sysutils/sge60/files/sge.sh.in index f7e29e487aa0..6eda1136c375 100644 --- a/sysutils/sge60/files/sge.sh.in +++ b/sysutils/sge60/files/sge.sh.in @@ -14,7 +14,7 @@ . %%RC_SUBR%% -SGE_ROOT=%%PREFIX%%/%%SGE_BASE%% +export SGE_ROOT=%%PREFIX%%/%%SGE_BASE%% name="sge" start_cmd="sge_start" @@ -26,6 +26,17 @@ sge_start() ${sgemaster_script} start fi if checkyesno sge_execd_enable; then + host=`hostname` + execd_spool_dir=${execd_spool_dir:-`${qconf} -sconf ${host} 2>/dev/null | awk '($1 == "execd_spool_dir") {print $2}'`} + execd_spool_dir=${execd_spool_dir:-`${qconf} -sconf global 2>/dev/null | awk '($1 == "execd_spool_dir") {print $2}'`} + if [ -n "${execd_spool_dir}" ]; then + mkdir -p ${execd_spool_dir} + mkdir -p ${execd_spool_dir}/${host%%.*} + mkdir -p ${execd_spool_dir}/${host%%.*}/active_jobs + mkdir -p ${execd_spool_dir}/${host%%.*}/jobs + mkdir -p ${execd_spool_dir}/${host%%.*}/job_scripts + chown -R sgeadmin ${execd_spool_dir}/${host%%.*} + fi ${sgeexecd_script} start fi } @@ -44,8 +55,11 @@ load_rc_config $name sge_qmaster_enable=${sge_qmaster_enable-NO} sge_execd_enable=${sge_execd_enable-NO} -sge_cell=${sge_cell:-default} -sgemaster_script=${SGE_ROOT}/${sge_cell}/common/sgemaster -sgeexecd_script=${SGE_ROOT}/${sge_cell}/common/sgeexecd +export SGE_CELL=${sge_cell:-default} +sgemaster_script=${SGE_ROOT}/${SGE_CELL}/common/sgemaster +sgeexecd_script=${SGE_ROOT}/${SGE_CELL}/common/sgeexecd +execd_spool_dir=${sge_execd_spool_dir-} +sge_arch=fbsd-`uname -m` +qconf=${SGE_ROOT}/bin/${sge_arch}/qconf run_rc_command $* |