quota support

  • Hi! Thanks for your question. My german isn't very good, so I'll try and help you in English.

    mit welchem paket wird eigentlich der quota support ungesetzt bei imscp?

    We use a script ran by cron (in imscp-dir/configs/debian/cron.d/imscp)
    This is added to the cron, this cron will run every hour.

    Code
    1. # Quota accounting8 @hourly root perl {QUOTA_ROOT_DIR}/imscp-dsk-quota > {LOG_DIR}/imscp-dsk-quota.log 2>&1


    As you can see the cron calls for a script in your imscp folder, called imscp-dsk-quota
    The exact line it will read your quota differs on what kind of quota you're trying to determine.
    For example files:


    Code
    1. 'du', '-s', '-B1', escapeShell("$virtualMailDir/$domainName")

    Or mail files



    Code
    1. 'maildir' => [ 'du', '-d 0 ', escapeShell($domainMailDir) ]

    Every hour it updates the used amount of bytes in the database

    Code
    1. 'update', 'UPDATE quotatallies SET bytes_in_used = ? WHERE name = ?', $totalDiskUsage, $domainName

    This allows for the use of quota without any extra kernel modules.


    I hope I answered your question ;)