Commit c1bef282 authored by Vitaly Lipatov's avatar Vitaly Lipatov

createbytask.int.sh: tune logrotate only for the project

parent a1bfa149
...@@ -127,10 +127,26 @@ EOF ...@@ -127,10 +127,26 @@ EOF
tune_logrotate() tune_logrotate()
{ {
ERRLOGNAME=${ACONF}_error.log
CUSLOGNAME=${ACONF}_access.log
# TODO: ErrorLog is set in apache conf, so use *.log here # TODO: ErrorLog is set in apache conf, so use *.log here
cat <<EOF >/etc/logrotate.d/apache-home-local.tmpCB cat <<EOF >/etc/logrotate.d/apache-home-local.tmpCB
/home/$AUSER/log/*.log { /home/$AUSER/log/$CUSLOGNAME {
missingok
rotate 3
size 3000k
notifempty
sharedscripts
#create 0644 root apache2
compress
nodelaycompress
postrotate
/sbin/service httpd2 condreload >/dev/null
endscript
}
/home/$AUSER/log/$ERRLOGNAME {
missingok missingok
rotate 3 rotate 3
size 3000k size 3000k
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment