Commit 242db22c authored by Vitaly Lipatov's avatar Vitaly Lipatov

add logrotate config

parent 9c6e3032
...@@ -34,6 +34,26 @@ EOF ...@@ -34,6 +34,26 @@ EOF
fi fi
} }
tune_logrotate()
{
cat <<EOF >>/etc/logrotate.d/apache-home-local
/home/*/log/*.log {
missingok
rotate 3
size 3000k
notifempty
sharedscripts
#create 0644 root apache2
compress
nodelaycompress
postrotate
/sbin/service httpd2 condreload >/dev/null
endscript
}
EOF
}
tune_monit() tune_monit()
{ {
epmi --auto --skip-installed monit epmi --auto --skip-installed monit
...@@ -190,5 +210,6 @@ done ...@@ -190,5 +210,6 @@ done
epmi --auto --skip-installed $PKGINSTALL epmi --auto --skip-installed $PKGINSTALL
tune_monit tune_monit
tune_logrotate
epm clean epm clean
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