Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问docker里面的nginx logrotate如何配置? #42

Open
zhangdp opened this issue Feb 22, 2019 · 0 comments
Open

请问docker里面的nginx logrotate如何配置? #42

zhangdp opened this issue Feb 22, 2019 · 0 comments

Comments

@zhangdp
Copy link

zhangdp commented Feb 22, 2019

进入nginx容器内,本身已经存在logrotate配置文件,但不知道如何运行它,定时启动它?
root@bd354287bf13:/etc/logrotate.d# cat nginx
/var/log/nginx/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 nginx adm
sharedscripts
postrotate
if [ -f /var/run/nginx.pid ]; then
kill -USR1 cat /var/run/nginx.pid
fi
endscript
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant