Project

General

Profile

Actions

Bug #11153

closed

sysconfig/apache2 modifications get removed

Added by Janos Mattyasovszky over 7 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Server components
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
59
Name check:
Fix check:
Regression:

Description

On SLES editing the /etc/sysconfig/apache2 file by adding two files to be sourced is not a good idea.

the template-fillup system by suse removes them on each update of the apache2 package:

Extraction of apache2 rpm's scripts:

PNAME=apache2
SUBPNAME=
TEMPLATE_DIR=/var/adm/fillup-templates
SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME$SUBPNAME
SD_NAME="" 

if [ -x /bin/fillup ] ; then
    if [ -f $SYSC_TEMPLATE ] ; then
        echo "Updating /etc/sysconfig/$SD_NAME$PNAME..." 
        mkdir -p /etc/sysconfig/$SD_NAME
        touch /etc/sysconfig/$SD_NAME$PNAME
        /bin/fillup -q /etc/sysconfig/$SD_NAME$PNAME $SYSC_TEMPLATE
    fi
else
    echo "ERROR: fillup not found. This should not happen. Please compare" 
    echo "/etc/sysconfig/$PNAME and $TEMPLATE_DIR/sysconfig.$PNAME and" 
    echo "update by hand." 
fi

Before called:

rudder # tail /etc/sysconfig/apache2
#
APACHE_EXTENDED_STATUS="off" 

APACHE_DISABLE_SSL_COMPRESSION="on" 

# This sources the modules/defines needed by Rudder
. /etc/sysconfig/rudder-relay-apache
# This sources the modules/defines needed by Rudder
. /etc/sysconfig/rudder-webapp-apache

Calling fillup:

rudder # /bin/fillup -q /etc/sysconfig/apache2 /var/adm/fillup-templates/sysconfig.apache2
rudder #

Afterwards:

rudder # tail /etc/sysconfig/apache2
## Default:     "off" 
## ServiceReload: apache2
#
# If mod_status is used, include extended information about the server, like
# CPU usage, in the status report. It is a server-wide setting, and it can cost
# some performance!
#
APACHE_EXTENDED_STATUS="off" 

APACHE_DISABLE_SSL_COMPRESSION="on" 

poof, it's gone.

this causes apache2 not to start, because mostly proxy and wcgi modules are not enabled, only by the sourcing of the additional stuff.

it also requires re-adding the lines after each apache2 rpm update :-/

you could either:

(found in rudder 4.1.5 on SLES11/12)

Actions

Also available in: Atom PDF