Issue #2356 - pypies configuration updates and RHEL6 compatibility updates
Former-commit-id:ca9597b66a
[formerly 2f1617632a5d24748e915066a7209839bca3f68a] Former-commit-id:826d5e1c78
This commit is contained in:
parent
b6d787103b
commit
938e49d7f1
3 changed files with 31 additions and 8 deletions
|
@ -345,11 +345,15 @@ ln -s ../../..%{_datadir}/pixmaps/poweredby.png \
|
||||||
rmdir $RPM_BUILD_ROOT/awips2/httpd_pypies%{_sysconfdir}/httpd/logs
|
rmdir $RPM_BUILD_ROOT/awips2/httpd_pypies%{_sysconfdir}/httpd/logs
|
||||||
mkdir -p $RPM_BUILD_ROOT/awips2/httpd_pypies%{_localstatedir}/log/httpd
|
mkdir -p $RPM_BUILD_ROOT/awips2/httpd_pypies%{_localstatedir}/log/httpd
|
||||||
mkdir -p $RPM_BUILD_ROOT/awips2/httpd_pypies%{_localstatedir}/run/httpd
|
mkdir -p $RPM_BUILD_ROOT/awips2/httpd_pypies%{_localstatedir}/run/httpd
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/awips2/httpd_pypies%{_localstatedir}/lock/subsys
|
||||||
|
|
||||||
|
pushd .
|
||||||
|
cd $RPM_BUILD_ROOT/awips2/httpd_pypies/etc/httpd
|
||||||
# symlinks for /etc/httpd
|
# symlinks for /etc/httpd
|
||||||
ln -s ../..%{_localstatedir}/log/httpd $RPM_BUILD_ROOT/awips2/httpd_pypies/etc/httpd/logs
|
ln -s ../..%{_localstatedir}/log/httpd $RPM_BUILD_ROOT/awips2/httpd_pypies/etc/httpd/logs
|
||||||
ln -s ../..%{_localstatedir}/run/httpd $RPM_BUILD_ROOT/awips2/httpd_pypies/etc/httpd/run
|
ln -s ../..%{_localstatedir}/run/httpd $RPM_BUILD_ROOT/awips2/httpd_pypies/etc/httpd/run
|
||||||
ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/awips2/httpd_pypies/etc/httpd/modules
|
ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/awips2/httpd_pypies/etc/httpd/modules
|
||||||
|
popd
|
||||||
|
|
||||||
# install service script
|
# install service script
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d
|
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d
|
||||||
|
@ -588,7 +592,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%config /awips2/httpd_pypies%{contentdir}/error/*.var
|
%config /awips2/httpd_pypies%{contentdir}/error/*.var
|
||||||
%config /awips2/httpd_pypies%{contentdir}/error/include/*.html
|
%config /awips2/httpd_pypies%{contentdir}/error/include/*.html
|
||||||
|
|
||||||
|
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/lock/subsys
|
||||||
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/log/httpd
|
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/log/httpd
|
||||||
|
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/run/httpd
|
||||||
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/lib/dav
|
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/lib/dav
|
||||||
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/cache/mod_proxy
|
%attr(0700,awips,fxalpha) %dir /awips2/httpd_pypies%{_localstatedir}/cache/mod_proxy
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,9 @@ ServerRoot "/awips2/httpd_pypies/etc/httpd"
|
||||||
|
|
||||||
#
|
#
|
||||||
# PidFile: The file in which the server should record its process
|
# PidFile: The file in which the server should record its process
|
||||||
# identification number when it starts.
|
# identification number when it starts. Note the PIDFILE variable in
|
||||||
|
# /etc/sysconfig/httpd must be set appropriately if this location is
|
||||||
|
# changed.
|
||||||
#
|
#
|
||||||
PidFile run/httpd.pid
|
PidFile run/httpd.pid
|
||||||
|
|
||||||
|
@ -184,25 +186,34 @@ LoadModule actions_module modules/mod_actions.so
|
||||||
LoadModule speling_module modules/mod_speling.so
|
LoadModule speling_module modules/mod_speling.so
|
||||||
LoadModule userdir_module modules/mod_userdir.so
|
LoadModule userdir_module modules/mod_userdir.so
|
||||||
LoadModule alias_module modules/mod_alias.so
|
LoadModule alias_module modules/mod_alias.so
|
||||||
|
LoadModule substitute_module modules/mod_substitute.so
|
||||||
LoadModule rewrite_module modules/mod_rewrite.so
|
LoadModule rewrite_module modules/mod_rewrite.so
|
||||||
LoadModule proxy_module modules/mod_proxy.so
|
LoadModule proxy_module modules/mod_proxy.so
|
||||||
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
|
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
|
||||||
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
|
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
|
||||||
LoadModule proxy_http_module modules/mod_proxy_http.so
|
LoadModule proxy_http_module modules/mod_proxy_http.so
|
||||||
|
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
|
||||||
LoadModule proxy_connect_module modules/mod_proxy_connect.so
|
LoadModule proxy_connect_module modules/mod_proxy_connect.so
|
||||||
LoadModule cache_module modules/mod_cache.so
|
LoadModule cache_module modules/mod_cache.so
|
||||||
LoadModule suexec_module modules/mod_suexec.so
|
LoadModule suexec_module modules/mod_suexec.so
|
||||||
LoadModule disk_cache_module modules/mod_disk_cache.so
|
LoadModule disk_cache_module modules/mod_disk_cache.so
|
||||||
LoadModule file_cache_module modules/mod_file_cache.so
|
|
||||||
LoadModule mem_cache_module modules/mod_mem_cache.so
|
|
||||||
LoadModule cgi_module modules/mod_cgi.so
|
LoadModule cgi_module modules/mod_cgi.so
|
||||||
LoadModule version_module modules/mod_version.so
|
LoadModule version_module modules/mod_version.so
|
||||||
|
|
||||||
#
|
#
|
||||||
# The following modules are not loaded by default:
|
# The following modules are not loaded by default:
|
||||||
#
|
#
|
||||||
#LoadModule cern_meta_module modules/mod_cern_meta.so
|
|
||||||
#LoadModule asis_module modules/mod_asis.so
|
#LoadModule asis_module modules/mod_asis.so
|
||||||
|
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
|
||||||
|
#LoadModule cern_meta_module modules/mod_cern_meta.so
|
||||||
|
#LoadModule cgid_module modules/mod_cgid.so
|
||||||
|
#LoadModule dbd_module modules/mod_dbd.so
|
||||||
|
#LoadModule dumpio_module modules/mod_dumpio.so
|
||||||
|
#LoadModule filter_module modules/mod_filter.so
|
||||||
|
#LoadModule ident_module modules/mod_ident.so
|
||||||
|
#LoadModule log_forensic_module modules/mod_log_forensic.so
|
||||||
|
#LoadModule unique_id_module modules/mod_unique_id.so
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Load config files from the config directory "/etc/httpd/conf.d".
|
# Load config files from the config directory "/etc/httpd/conf.d".
|
||||||
|
@ -352,11 +363,11 @@ DocumentRoot "/awips2/httpd_pypies/var/www/html"
|
||||||
# of a username on the system (depending on home directory
|
# of a username on the system (depending on home directory
|
||||||
# permissions).
|
# permissions).
|
||||||
#
|
#
|
||||||
UserDir disable
|
UserDir disabled
|
||||||
|
|
||||||
#
|
#
|
||||||
# To enable requests to /~user/ to serve the user's public_html
|
# To enable requests to /~user/ to serve the user's public_html
|
||||||
# directory, remove the "UserDir disable" line above, and uncomment
|
# directory, remove the "UserDir disabled" line above, and uncomment
|
||||||
# the following line instead:
|
# the following line instead:
|
||||||
#
|
#
|
||||||
#UserDir public_html
|
#UserDir public_html
|
||||||
|
@ -589,7 +600,7 @@ ScriptAlias /cgi-bin/ "/awips2/httpd_pypies/var/www/cgi-bin/"
|
||||||
# IndexOptions: Controls the appearance of server-generated directory
|
# IndexOptions: Controls the appearance of server-generated directory
|
||||||
# listings.
|
# listings.
|
||||||
#
|
#
|
||||||
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
|
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
|
||||||
|
|
||||||
#
|
#
|
||||||
# AddIcon* directives tell the server which icon to show for different
|
# AddIcon* directives tell the server which icon to show for different
|
||||||
|
@ -767,6 +778,12 @@ AddDefaultCharset UTF-8
|
||||||
AddType application/x-compress .Z
|
AddType application/x-compress .Z
|
||||||
AddType application/x-gzip .gz .tgz
|
AddType application/x-gzip .gz .tgz
|
||||||
|
|
||||||
|
#
|
||||||
|
# MIME-types for downloading Certificates and CRLs
|
||||||
|
#
|
||||||
|
AddType application/x-x509-ca-cert .crt
|
||||||
|
AddType application/x-pkcs7-crl .crl
|
||||||
|
|
||||||
#
|
#
|
||||||
# AddHandler allows you to map certain file extensions to "handlers":
|
# AddHandler allows you to map certain file extensions to "handlers":
|
||||||
# actions unrelated to filetype. These can be either built into the server
|
# actions unrelated to filetype. These can be either built into the server
|
||||||
|
|
|
@ -77,7 +77,7 @@ check13 () {
|
||||||
start() {
|
start() {
|
||||||
source /etc/profile.d/awips2HDF5Tools.sh
|
source /etc/profile.d/awips2HDF5Tools.sh
|
||||||
echo -n $"Starting logging service:"
|
echo -n $"Starting logging service:"
|
||||||
nohup su awips -c "$loggingCmd > /tmp/pypiesLoggingService.log 2>&1" > /dev/null &
|
nohup su awips -c "$loggingCmd > /tmp/pypiesLoggingService.log 2>&1" > /dev/null 2>&1 &
|
||||||
RC=$?
|
RC=$?
|
||||||
# TODO: need better checks to ensure that the logging service actually keeps
|
# TODO: need better checks to ensure that the logging service actually keeps
|
||||||
# running after startup.
|
# running after startup.
|
||||||
|
|
Loading…
Add table
Reference in a new issue