HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-84-generic #84-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 5 22:36:38 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //etc/sysconfig/kcare/libcare.logrotate
/var/log/libcare/server.log {
    daily
    rotate 5
    maxage 5
    maxsize 10M
    missingok
    notifempty
    compress
    nocreate
    sharedscripts
    lastaction
        # Reopen server.log after rotating
        [ ! -S /var/run/libcare.sock ] || \
            /usr/libexec/kcare/libcare-client reconf
        # Remove really old logs (30+ days old)
        find /var/log/libcare/ -name "*.gz" -mtime +30 -delete
    endscript
}

/var/log/libcare/[0-9]*.log {
    daily
    rotate 5
    maxage 5
    maxsize 1M
    missingok
    notifempty
    compress
    nocreate
    sharedscripts
    lastaction
        # Remove really old logs (30+ days old)
        find /var/log/libcare/ -name "*.gz" -mtime +30 -delete
    endscript
}