浏览代码

fixed log file rotation group ownership

master
父节点
当前提交
75200a17be
  1. 2
      apache/rc.apache
  2. 2
      postfix/rc.postfix

2
apache/rc.apache

@ -36,7 +36,7 @@
if [ ".$apache_log_files" != . ]; then
shtool rotate -f \
-n${apache_log_rotsteps} -s${apache_log_rotminsize} -d \
-z${apache_log_rotcomplevel} -o@l_fsusr@ -o@l_fsgrp@ -m644 \
-z${apache_log_rotcomplevel} -o@l_fsusr@ -g@l_fsgrp@ -m644 \
-P "$apache_log_rotprolog" \
-E "@l_prefix@/sbin/apachectl restart; $apache_log_rotepilog" \
$apache_log_files

2
postfix/rc.postfix

@ -39,7 +39,7 @@
# generate logfile summary
shtool rotate -f \
-n${postfix_log_numfiles} -s0 \
-z${postfix_log_complevel} -o@l_fsusr@ -o@l_fsgrp@ -m644 \
-z${postfix_log_complevel} -o@l_fsusr@ -g@l_fsgrp@ -m644 \
@l_prefix@/var/postfix/log/postfix.sum
logfiles="@l_prefix@/var/postfix/log/postfix.log"
if [ -f "@l_prefix@/var/postfix/log/postfix.log.0" ]; then

正在加载...
取消
保存