Fredrik wrote in <7978be63-dacf-9015-dac0-93efcf695261@rinnestam.se>: |On 2020-01-17 23:05, Steffen Nurpmeso wrote: |> Steffen Nurpmeso wrote in <20200117215549.vY3WG%steffen@sdaoden.eu>: |>|Hello Jürgen, hello all. |>| |>|Wonderful new BSD-style syslogd with builtin log rotation support! |>|It makes available remote logging by default though, which is why |>|on FreeBSD the options -s (or even -ss) are recommendet. |> |> And how about dropping rotatelog, /var/log/old and simply using |> below /etc/syslog.conf? |> |> A nice weekend everybody. | |Looks good. Dont think its a good idea to abandon rotatelog mid-release |since people might use it for more custom stuff. Even abandoning it |completely for next release would be unfortunate imho. Not everything |logs through syslog Sure. For me the problem with it was that there is no size restriction, it only rotates via cron. Now on my server i do have a partition only for the log files, but even there i do not want to get disk full errors because other logs would be incomplete. (Despite not knowing how syslog behaves if it cannot put new entries, i never tried.) I feel much saver when i can specify it, so i can calculate the maximum space necessary for all logs, and still have some pad. Hm. rotatelog and its syslog cron file are part of the sysklogd package. :) And really hard to adjust. I for one am really happy with the new syslog! Despite what is still missing for me is a hook that gets called when files actually get rotated. On the VM, which still does not drive CRUX but Alpine, busybox syslog can also not call hooks, but knows about rotation and size limit. busybox has inotifyd, so i can set watches on /var/log, even though i hate it So i wrote the patch as attached. It seems to fix a syslog.conf option parsing bug, too. I'll mail him that in a second. I now have *.emerg * kern.* /var/log/kernel ;rotate=1M:3,rotatehook=/root/syslog.sh authpriv,auth.info /var/log/auth ;rotate=200k:3,rotatehook=/root/syslog.sh mail.info /var/log/mail ;rotate=1M:10,rotatehook=/root/syslog.sh cron.info /var/log/cron ;rotate=200k:3,rotatehook=/root/syslog.sh *.info;authpriv,auth,mail,cron,kern.none /var/log/messages ;rotate=1M:5,rotatehook=/root/syslog.sh *.=debug;kern.none /var/log/debug ;rotate=200k:3,rotatehook=/root/syslog.sh include /etc/syslog.d/*.conf And seems to work great! :) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)