Browse Source

Correct log file modes, substitute localhost IP address in config, and add a sleep timer to %stop section to give the server a chance to remove its last run pid files

master
Michael Schloh von Bennewitz 22 years ago committed by Ralf S. Engelschall
parent
commit
1c4e2732a8
  1. 3
      apache2/apache2.spec
  2. 5
      apache2/rc.apache2

3
apache2/apache2.spec

@ -85,6 +85,9 @@ Conflicts: apache, apr
%install
rm -rf $RPM_BUILD_ROOT
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
%{l_shtool} subst \
-e 's;^\(Listen\).*;\1 127.0.0.1:80;' \
$RPM_BUILD_ROOT%{l_prefix}/etc/apache2/httpd.conf
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 %{l_value -s -a} \

5
apache2/rc.apache2

@ -43,6 +43,7 @@
rcService apache2 enable yes || exit 0
rcService apache2 active no && exit 0
@l_prefix@/sbin/apachectl stop
sleep 2
%restart -u @l_susr@
rcService apache2 enable yes || exit 0
@ -57,13 +58,13 @@
hintfile=`rcTmp -f -n hint`
shtool rotate -f \
-n ${apache2_log_rotsteps} -s ${apache2_log_rotminsize} -d \
-z ${apache2_log_rotcomplevel} -o @l_musr@ -g @l_mgrp@ -m 644 \
-z ${apache2_log_rotcomplevel} -o @l_susr@ -g @l_mgrp@ -m 644 \
-P "$apache2_log_rotprolog" \
-E "$apache2_log_rotepilog && echo 1 >$hintfile" \
${apache2_log_files}
shtool rotate -f \
-n ${apache2_err_rotsteps} -s ${apache2_err_rotminsize} -d \
-z ${apache2_err_rotcomplevel} -o @l_musr@ -g @l_mgrp@ -m 644 \
-z ${apache2_err_rotcomplevel} -o @l_susr@ -g @l_mgrp@ -m 644 \
-P "$apache2_err_rotprolog" \
-E "$apache2_err_rotepilog && echo 1 >$hintfile" \
${apache2_err_files}

Loading…
Cancel
Save