-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunewager.logrotate
More file actions
27 lines (24 loc) · 830 Bytes
/
runewager.logrotate
File metadata and controls
27 lines (24 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# =============================================================================
# Runewager Bot — logrotate config template (repo canonical version)
#
# This file is a REFERENCE COPY kept in the repo.
# The authoritative /etc/logrotate.d/runewager is written by prod-run.sh,
# which substitutes the correct UID:GID for the runewager system user.
#
# Numeric UID/GID placeholders (1001:1001) MUST be replaced by prod-run.sh.
# =============================================================================
/var/www/html/Runewager/logs/*.log {
daily
rotate 14
size 5M
missingok
notifempty
compress
delaycompress
dateext
copytruncate
# prod-run.sh replaces 1001 1001 with actual uid:gid
create 0640 1001 1001
# required for non-root rotation on hardened systems
su 1001 1001
}