Ken Moffat wrote:
I'm just updating my build scripts. For years I have used a simple
script to do log rotation, so now I am going to try the logrotate
package. Looking at the creation of /etc/logrotate.conf we have the
following:
# Don't send mail to anybody
nomail
I read that comment as "logrotate should not send mail about its
operation to anybody", which is not necessarily what I want
(although I think I'm going to get a report from fcron). But looking
at an online manpage, and the link to techrepublic.com, the command
appears to mean "Do not mail old logs (which are about to be deleted)
to anybody" and that is proobably what I want.
Am I right that the comment is misleading, or have I misunderstood
it ?
I'm not sure if the mail command is for mailing files before deleting or
just a status of operation. We don't generally go into the details of
configuration files but instead give a fairly minimal config file that
works.
The man page says it is used to send files. See also the mailfirst and
maillast directives.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page