add logroate script and install in vm

This commit is contained in:
j 2013-02-09 10:42:21 +00:00
parent a8f1ae51ef
commit 42ecad4199
2 changed files with 18 additions and 0 deletions

15
etc/logrotate.d/pandora Normal file
View file

@ -0,0 +1,15 @@
/var/log/pandora/*.log {
daily
missingok
rotate 10
compress
delaycompress
notifempty
create 0640 pandora pandora
sharedscripts
postrotate
service pandora reload
service pandora-tasks reload
service pandora-encoding reload
endscript
}

View file

@ -60,6 +60,9 @@ service pandora-encoding start
service pandora-tasks start service pandora-tasks start
service pandora start service pandora start
#logrotate
cp "/srv/pandora/etc/logrotate.d/pandora" "/etc/logroated.d/pandora"
#nginx #nginx
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default" cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default"
service nginx restart service nginx restart