Support #145
rotate production logs
| Status: | Closed | Start: | 10/07/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Brenda Butler | % Done: | 100% |
|
| Category: | - | Spent time: | 2.00 hours | |
| Target version: | - | Estimated beans: | 1.00 hour | Velocity: | 0.50 beans per hour |
Description
redmine@code:~/redmine$ ls lta log 1 redmine redmine 992 Oct 7 21:34 production.log
total 1387164
-rw-r--r-rw-r--r- 1 redmine redmine 1419038821 Oct 7 21:33 production.log.1
drwxr-xr-x 2 redmine redmine 4096 Oct 7 21:30 .
History
Updated by Brenda Butler over 2 years ago
- Status changed from New to Assigned
- Assignee set to Brenda Butler
- % Done changed from 0 to 90
Could not figure out how to reconfigure redmine to write logs to /var/log - so made a link from /var/log/redmine to /home/redmine/redmine/logs.
Wanted to put the redmine logrotate config in the same file as apache2, and share the postrotate command, but couldn't figure that out either. So made a separate redmine logrotate config. Too bad, apache will be reloaded twice, once for apache2 and once for redmine.
While I was in /etc/ on code, I checked in everything to git. Unfortunately I only thought to do that after I edited the files.
The logrotate has been tested with -f on the redmine-only config, and without -f on the real config. I will log in tomorrow and again over the next few days to ensure that it is working properly.
Updated by Brenda Butler over 2 years ago
Ok so far. Check again next week.
Updated by Brenda Butler over 2 years ago
- Status changed from Assigned to Closed
- % Done changed from 90 to 100
Checked the logs, they seem to be being rotated properly over the last two weeks.