From: František Dvořák Date: Sat, 3 Nov 2012 11:22:58 +0000 (+0000) Subject: Running tests of gridside under SL6 (it is launched inside rc scripts with SELinux... X-Git-Tag: glite-jobid-api-c_R_2_2_4_1~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ff7c896c7c6ebf7e1116492aef8641d8ac67324c;p=jra1mw.git Running tests of gridside under SL6 (it is launched inside rc scripts with SELinux enabled). --- diff --git a/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh b/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh index 44af515..4eb494c 100755 --- a/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh +++ b/org.glite.testsuites.ctb/gridsite/tests/gridsite-common-testbeds.sh @@ -105,8 +105,16 @@ mkdir -p /var/www/htdocs killall httpd apache2 >/dev/null 2>&1 sleep 2 killall -9 httpd apache2 >/dev/null 2>&1 -echo Starting \$SYS_APACHE -f \$HTTPD_CONF -\$SYS_APACHE -f \$HTTPD_CONF +if selinuxenabled >/dev/null 2>&1; then + # SL6 doesn't like much starting apache inside rc scripts + # change identity 'system_u:system_r:initrc_t:s0' + echo "SELinux enabled, don't panic!" + echo Starting sudo -r unconfined_r -t unconfined_t \$SYS_APACHE -f \$HTTPD_CONF + sudo -r unconfined_r -t unconfined_t \$SYS_APACHE -f \$HTTPD_CONF +else + echo Starting \$SYS_APACHE -f \$HTTPD_CONF + \$SYS_APACHE -f \$HTTPD_CONF +fi cd /tmp