Hi, On 04/04/2014 08:57 PM, Cristian Rodríguez wrote:
Hi:
Today an update to logrotate has hit the factory repositories and I think it is prudent to inform you all about some changes I added to the package and its side effects, either for documentation purposes or JFYI. ;)
- Logrotate no longer runs as a cronjob but as a systemd.timer(5)
- You can enable/disable log rotation by issuing systemctl enable/disable logrotate.timer
- It continues to run just like "cron.daily" with the following bonus perks:
* Log rotation will be postponed until your are connected to AC power, in order not drain your precious battery time.
* The task will run as soon as possible in case your system was turned off, suspended or otherwise inactive at the time the process was scheduled (requires systemd 212 or later)
* If any error is found, the results will be found in the journal (and/or syslog if installed) to see what's going on issue:
systemctl status logrotate.service logrotate.timer
Observed problems/gotchas:
zypp installs packages in an unsuitable order, systemd-presets that enable the timer by default may be installed after the logrotate update. thus it does not get automatically enabled.
to ensure things keep running smoothly in your factory installation:
$ systemctl enable logrotate.timer $ systemctl start logrotate.timer
Generally I like systemd and the features it provides. However, in this case I have to say that the using systemd puts an additional burden on the users, plus the loss of some features as pointed out in the thread. Just because we can doesn't mean we should. Not everything has to be controlled by systemd or use the features that systemd provides, especially when the changes to base something on systemd implies loss of functionality and additional work for users. We should strive to make things easier for people, not more difficult with more stuff to remember. And maybe the enable command can be inserted in YaST somewhere, but hen this should be an accompanying change. We will get bug reports about this. My $0.02 Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead Public Cloud Architect rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org