Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / logrotate / | server ip : 104.21.89.46 your ip : 172.69.214.234 H O M E |
Filename | /usr/share/doc/logrotate/README.Debian |
Size | 720 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 23-Jan-2014 02:19 |
Last accessed | 06-Jul-2025 18:38 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
logrotate for Debian
--------------------
Note that logrotate may not be the only log rotation program on a Debian
system.
If sysklogd is installed, as was the case in older versions of Debian,
it uses its own log rotation scripts which can be found in
/etc/cron.daily/sysklogd and /etc/cron.weekly/sysklogd
Current installs use rsyslog, which does not perform its own log
rotation, but makes use of logrotate.
~~
Logrotate prerotate/postrotate/firstaction/lastaction scripts are
currently executed by giving the whole script to "sh -c" thus:
execl("/bin/sh", "sh", "-c", script, "sh", logfn, NULL);
This might change in future versions.
-- Paul Martin <[email protected]> Mon, 05 Dec 2011 17:38:47 +0000
--------------------
Note that logrotate may not be the only log rotation program on a Debian
system.
If sysklogd is installed, as was the case in older versions of Debian,
it uses its own log rotation scripts which can be found in
/etc/cron.daily/sysklogd and /etc/cron.weekly/sysklogd
Current installs use rsyslog, which does not perform its own log
rotation, but makes use of logrotate.
~~
Logrotate prerotate/postrotate/firstaction/lastaction scripts are
currently executed by giving the whole script to "sh -c" thus:
execl("/bin/sh", "sh", "-c", script, "sh", logfn, NULL);
This might change in future versions.
-- Paul Martin <[email protected]> Mon, 05 Dec 2011 17:38:47 +0000