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 start
#logrotate
cp "/srv/pandora/etc/logrotate.d/pandora" "/etc/logroated.d/pandora"
#nginx
cp "/srv/pandora/etc/nginx/pandora" "/etc/nginx/sites-available/default"
service nginx restart