/var/log/mpfs/tests.log
/var/log/mpfs/error-tskv.log
/var/log/mpfs/stat-tskv.log
/var/log/mpfs/stat-empty-disk-info.log
/var/log/mpfs/stat-listing.log
/var/log/mpfs/stat-social.log
/var/log/mpfs/stat-store.log
/var/log/mpfs/stat-video-listing.log
/var/log/mpfs/stat-analytics-daily-personal.log
/var/log/mpfs/storage-cleaner-worker-tskv.log
/var/log/mpfs/event-history.log
/var/log/mpfs/deleted-stids-tskv.log
{
    nocompress
    rotate 5
    daily
    maxsize 10G
    missingok
    nodateext
    nocreate
    postrotate
        file_name="${1%.log*}.log"
        if [[ "${file_name}" != ".log" ]]; then
            (umask 000; touch "${file_name}")
            chown nginx:nginx "${file_name}"
            chmod 644 "${file_name}"
        fi
    endscript
}

/var/log/mpfs/storage-cleaner-worker.log.tskv
{
    nocompress
    rotate 5
    daily
    maxsize 10G
    missingok
    nodateext
    nocreate
    postrotate
        file_name="${1%.log*}.log.tskv"
        if [[ "${file_name}" != ".log.tskv" ]]; then
            (umask 000; touch "${file_name}")
            chown nginx:nginx "${file_name}"
            chmod 644 "${file_name}"
        fi
    endscript
}

/var/log/mpfs/default-tskv.log
/var/log/mpfs/access-tskv.log
/var/log/mpfs/requests-tskv.log
/var/log/mpfs/service-tskv.log
{
    nocompress
    rotate 5
    daily
    maxsize 10G
    missingok
    nocreate
    postrotate
        file_name="${1%.log*}.log"
        if [[ "${file_name}" != ".log" ]]; then
            (umask 000; touch "${file_name}")
            chown nginx:nginx "${file_name}"
            chmod 644 "${file_name}"
        fi
    endscript
}

/var/log/mpfs/uwsgi-tskv.log
{
    nocompress
    rotate 5
    daily
    maxsize 10G
    nocreate
    missingok
    copytruncate
}

# vim: set ts=4 sw=4 et: