sbopkg / sbopkg

Slackbuilds.org Package Browser
https://sbopkg.org/
Other
121 stars 45 forks source link

Log rotation #50

Closed wronguser closed 6 years ago

wronguser commented 6 years ago

Log file eventually increases in size and takes tens of megabytes. Looks like we need to rotate the log file.

167
168    if [[ -e $LOGFILE ]]; then
169        mv -f $LOGFILE $LOGFILE.old
170    fi
171
richarson commented 6 years ago

I have created this in my system (logrotate is part of a default -full- Slackware install):

$ cat /etc/logrotate.d/sbopkg
/var/adm/sbopkg/sbopkg-build-log {
    notifempty
    missingok
    compress
}

Provided you don't modify its default name (/var/log/sbopkg/sbopkg-build-log), maybe sbopkg could include/encourage such a logrotate file.

willysr commented 6 years ago

Fixed in 3297b4aa1d52651a2fdf415ce02d307cc0639ec8