Subj : Re: Compiling Huskybse To : Black Panther From : deon Date : Tue Jan 12 2021 10:15:29 Re: Re: Compiling Huskybse By: Black Panther to deon on Mon Jan 11 2021 02:31 am BP> Yes, any detail you could send would be great. I've been moving them manually, when I notice they're getting close to 100MB... OK... 1) map in a cron.daily (or cron.weekly/hourly, etc) directory into the container docker run .. -v ${SRC}/cron/cron.daily:/etc/cron.daily 2) In cron.daily I have a logrotate, nodelist (running makenl daily) and a queuestatus - that posts the hub queue to the stats echo. logrotate is: #---START #!/bin/sh # skip in favour of systemd timer if [ -d /run/systemd/system ]; then exit 0 fi # this cronjob persists removals (but not purges) if [ ! -x /usr/sbin/logrotate ]; then exit 0 fi /usr/sbin/logrotate /etc/logrotate.conf EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" fi exit $EXITVALUE #---END 3) Inside the container, I already have a /etc/logrotate.d/fido, which assumes the logs are all in /var/log/fido, and will rotate them to /var/log/fido/old/. My /var/log/fido is a mount with -v ${SRC}/log:/var/log/fido - so on my host they are all in ${SRC} (/srv/docker/fidohub) If your logs are in a different place, or want to use a different /etc/logrotate.d/fido, you can map in your replacement with -v /src/to/your/fido:/etc/logrotate.d/fido You should be good to go... ....лоеп .... A self-starting oscillator won't. --- SBBSecho 3.11-Linux * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116) .