robohack / newsyslog Goto Github PK
View Code? Open in Web Editor NEWAn enhanced and more portable version of `newsyslog` -- a tool for archiving log files
Home Page: http://www.planix.com/~woods/projects/newsyslog.html
License: Other
An enhanced and more portable version of `newsyslog` -- a tool for archiving log files
Home Page: http://www.planix.com/~woods/projects/newsyslog.html
License: Other
Hello,
I'm experiencing a strange owner issue for rotated and archived logs. For some reason newsyslog keeps the first compressed log owned by root:root
:
# ls -lh
total 284K
-rw-r--r-- 1 nginx root 113 Jun 1 04:17 access.log
-rw-r--r-- 1 nginx root 1.3K Jun 1 04:17 access.log.0
-rw-r--r-- 1 root root 203 Jun 1 04:17 access.log.1.gz
-rw-r--r-- 1 nginx root 355 Jun 1 04:14 access.log.2.gz
-rw-r--r-- 1 nginx root 312 Jun 1 04:11 access.log.3.gz
-rw-r--r-- 1 nginx root 375 Jun 1 04:07 access.log.4.gz
-rw-r--r-- 1 nginx root 148.7K Jun 1 04:04 access.log.5.gz
-rw-r--r-- 1 nginx root 113 Jun 1 04:17 access.ssl.log
-rw-r--r-- 1 nginx root 1.2K Jun 1 04:17 access.ssl.log.0
-rw-r--r-- 1 root root 333 Jun 1 04:17 access.ssl.log.1.gz
-rw-r--r-- 1 nginx root 509 Jun 1 04:14 access.ssl.log.2.gz
-rw-r--r-- 1 nginx root 273 Jun 1 04:11 access.ssl.log.3.gz
-rw-r--r-- 1 nginx root 86.7K Jun 1 04:04 access.ssl.log.4.gz
Relevant /etc/newsyslog.conf
:
/var/log/nginx.mirror/access.log nginx:root 644 31 * D0 DZ0 /run/nginx/nginx.pid USR1
/var/log/nginx.mirror/access.ssl.log nginx:root 644 31 * D0 DZ0 /run/nginx/nginx.pid USR1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.