forked from 0x2620/pandora
add logroate script and install in vm
This commit is contained in:
parent
a8f1ae51ef
commit
42ecad4199
2 changed files with 18 additions and 0 deletions
15
etc/logrotate.d/pandora
Normal file
15
etc/logrotate.d/pandora
Normal 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
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue