|
|
@@ -52,18 +52,18 @@
|
|
|
%restart -u @l_susr@
|
|
|
rcService apache enable yes || exit 0
|
|
|
rcService apache active no && exit 0
|
|
|
+ @l_prefix@/sbin/apache -t || exit $?
|
|
|
rc apache stop start
|
|
|
|
|
|
%reload -u @l_susr@
|
|
|
rcService apache enable yes || exit 0
|
|
|
rcService apache active no && exit 0
|
|
|
- apache_signal HUP
|
|
|
+ @l_prefix@/sbin/apache -t || exit $?
|
|
|
+ apache_signal USR1
|
|
|
|
|
|
%daily -u @l_susr@
|
|
|
rcService apache enable yes || exit 0
|
|
|
-
|
|
|
if [ ".$apache_log_files" != . ]; then
|
|
|
- # rotate logfile
|
|
|
shtool rotate -f \
|
|
|
-n ${apache_log_numfiles} -s ${apache_log_minsize} -d \
|
|
|
-z ${apache_log_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \
|
|
|
@@ -71,9 +71,7 @@
|
|
|
-E "${apache_log_epilog} && rc apache reload" \
|
|
|
$apache_log_files
|
|
|
fi
|
|
|
-
|
|
|
if [ ".$apache_err_files" != . ]; then
|
|
|
- # rotate errfile
|
|
|
shtool rotate -f \
|
|
|
-n ${apache_err_numfiles} -s ${apache_err_minsize} -d \
|
|
|
-z ${apache_err_complevel} -m 644 -o @l_susr@ -g @l_mgrp@ \
|