This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".  
Status: 2025-02-15

logrotate

these files will be created during first install of Emvicy by using \MyMVCInstaller::createLogrotateFiles, which is part of /application/init/util/checkInstall.php

The paths are auto-added and match the installation paths.


logrotate.conf

Location

application/logrotate.conf

Example: Content

"/var/www/html/application/log/*.log"
{
    rotate 2
    daily
    su guido guido
    create 640 guido guido
    compress
    missingok
    notifempty
    copytruncate
    size=250k
}

logrotate.sh

Location

application/logrotate.sh

Example: Content

#!/usr/bin/bash
/usr/sbin/logrotate -v -s /tmp/67af528fe38f7 /var/www/html/application/logrotate.conf