openresty / openresty/openresty-packaging
OpenResty Ubuntu package has no logrotate configuration
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 187
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
I was surprised to see that there is no logrotate configuration for the Ubuntu package. I only realised once the server ran out of space :D Here's what I ended up using:
var/log/openresty/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root root
sharedscripts
postrotate
if [ -f /usr/local/openresty/nginx/logs/nginx.pid ]; then
kill -USR1 `cat /usr/local/openresty/nginx/logs/nginx.pid`
fi
endscript
}
This is basically the same as the nginx Ubuntu 20.04 package's configuration with a tweak to the pid file location and the user and group of the log file ownership.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Ubuntu package definition and compare it with the Ubuntu 20.04 nginx package's logrotate configuration described in the issue. Done means the OpenResty Ubuntu package installs a matching configuration using the stated log path, ownership, and nginx.pid location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx, ubuntu
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100