PHP 8.2.32
Preview: logrotate Size: 228 B
/etc/cron.daily/logrotate

#!/bin/sh
export TMPDIR=/var/spool/logrotate/tmp

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit $EXITVALUE

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
2.13 KB lrwxr-xr-x 2026-07-21 14:05:06
Edit Download
228 B lrwxr-xr-x 2024-02-20 01:55:38
Edit Download
3.71 KB lrwxr-xr-x 2026-05-13 10:30:29
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).