mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-21 03:36:35 +00:00
6b8e3d870e
/var/log/spinifex is 0775 root:spinifex so each service user can write its own log. logrotate refuses to rotate inside a group-writable directory unless the config says which user to rotate as, so every entry was skipped and the logs grew without bound. Verified on env13: before, logrotate -d reported 'skipping /var/log/spinifex/nats.log because parent directory has insecure permissions' and nothing had ever rotated. After, the debug run is clean and forced rotations produce nats.log.1 and a compressed nats.log.2.gz.
14 lines
353 B
Plaintext
14 lines
353 B
Plaintext
/var/log/spinifex/*.log {
|
|
# The directory is 0775 root:spinifex so each service user can write its own
|
|
# log. logrotate refuses to rotate inside a group-writable directory unless
|
|
# it is told which user to rotate as.
|
|
su root spinifex
|
|
daily
|
|
rotate 14
|
|
compress
|
|
delaycompress
|
|
missingok
|
|
notifempty
|
|
copytruncate
|
|
}
|