case $1 in
start)
[ -f /etc/apache2/httpd.conf ] || touch /etc/apache2/httpd.conf
# ssl_scache shouldn't be here if we're just starting up.
[ -f /var/run/apache2/ssl_scache ] && rm -f /var/run/apache2/*ssl_scache*
# /var/run and /var/lock could be on a tmpfs
[ ! -d /var/run/apache2 ] && mkdir /var/run/apache2
[ ! -d /var/lock/apache2 ] && mkdir /var/lock/apache2
# Make sure /var/lock/apache2 has the correct permissions
chown www-data /var/lock/apache2
log_begin_msg "Starting apache 2.0 web server..."
if $APACHE2CTL startssl; then log_end_msg 0 else log_end_msg 1
fi
;;
I confirm this bug. Moreover, in the package apache2-common for edgy, the line is present:
------- -----/etc/ init.d/ apache2- ------- from package apache2- common_ 2.0.55- 4ubuntu4_ i386.deb (edgy)
case $1 in httpd.conf ] || touch /etc/apache2/ httpd.conf apache2/ ssl_scache ] && rm -f /var/run/ apache2/ *ssl_scache*
start)
[ -f /etc/apache2/
# ssl_scache shouldn't be here if we're just starting up.
[ -f /var/run/
# /var/run and /var/lock could be on a tmpfs
[ ! -d /var/run/apache2 ] && mkdir /var/run/apache2
[ ! -d /var/lock/apache2 ] && mkdir /var/lock/apache2
# Make sure /var/lock/apache2 has the correct permissions
chown www-data /var/lock/apache2
log_begin_msg "Starting apache 2.0 web server..."
log_ end_msg 0
else
log_ end_msg 1
if $APACHE2CTL startssl; then
fi
;;
------- -----/etc/ init.d/ apache2- ------- from package apache2. 2-common_ 2.2.3-3. 2build1_ i386.deb (feisty)
case $1 in httpd.conf ] || touch /etc/apache2/ httpd.conf apache2/ ssl_scache ] && rm -f /var/run/ apache2/ *ssl_scache*
log_ end_msg 0
else
log_ end_msg 1
start)
[ -f /etc/apache2/
[ -d /var/run/apache2 ] || mkdir -p /var/run/apache2
[ -d /var/lock/apache2 ] || mkdir -p /var/lock/apache2
#ssl_scache shouldn't be here if we're just starting up.
[ -f /var/run/
log_begin_msg "Starting web server (apache2)..."
if $APACHE2CTL start; then
fi
;;
Not yet solved in gutsy: -----/etc/ init.d/ apache2- ------- from package apache2. 2-common_ 2.2.3-4_ i386.deb (gutsy)
-------
case $1 in httpd.conf ] || touch /etc/apache2/ httpd.conf apache2/ ssl_scache ] && rm -f /var/run/ apache2/ *ssl_scache*
log_ end_msg 0
else
log_ end_msg 1
start)
[ -f /etc/apache2/
[ -d /var/run/apache2 ] || mkdir -p /var/run/apache2
[ -d /var/lock/apache2 ] || mkdir -p /var/lock/apache2
#ssl_scache shouldn't be here if we're just starting up.
[ -f /var/run/
log_begin_msg "Starting web server (apache2)..."
if $APACHE2CTL start; then
fi
;;