Merge lp:~jamesodhunt/ubuntu/trusty/upstart/periodic-logrotate into lp:ubuntu/trusty/upstart
| Status: | Needs review |
|---|---|
| Proposed branch: | lp:~jamesodhunt/ubuntu/trusty/upstart/periodic-logrotate |
| Merge into: | lp:ubuntu/trusty/upstart |
| Diff against target: |
34 lines (+17/-1) 2 files modified
debian/changelog (+3/-1) debian/user-conf/periodic-logrotate.conf (+14/-0) |
| To merge this branch: | bzr merge lp:~jamesodhunt/ubuntu/trusty/upstart/periodic-logrotate |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Steve Langasek | 2014-01-21 | Pending | |
|
Review via email:
|
|||
Description of the Change
We already provide a logrotate session job which runs soon after the user session has been created. However, it is never re-run.
It seems sensible that, like its /etc/cron.
# change period to 5 minutes
echo 'env ROTATE_SECONDS=300' >> ~/.config/
We could encapsulate all this within the logrotate job itself but 2 jobs allows the existing behaviour to be retained should that be desirable by simply disabling the new job:
echo manual >> ~/.config/
Unmerged revisions
- 1538. By James Hunt on 2014-01-21
-
debian/
user-conf/ periodic- logrotate. conf: Session job to run logrotate
hourly by default.

