daily/weekly/monthly periodic output

Corey Dulecki corey at internationalservices.com
Thu Oct 9 15:56:17 UTC 2008


Thank you all for your very fast assistance!

Greg Larkin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Corey Dulecki wrote:
>   
>> I have FreeBSD 6.2 running on IBM hardware, single CPU.  This server
>> does not have sendmail enabled at all, i.e., in /etc/rc.conf, all four
>> of the "sendmail_xxx" enablers are set to "NO".  Today, the /var
>> filesystem ran out of inodes.
>>
>> I tracked the issue down to files that keep appearing in
>> /var/spool/clientmqueue.  I've researched enough to understand that
>> these files represent emails that cannot be sent, presumably because I
>> do not have a mail server running on the system.  I do not want to
>> enable sendmail or any other client; what I want to do is have the
>> processes which generate these emails send their information to a log,
>> which I will check manually.  I believe these emails are being generated
>> by the daily/weekly/monthly periodic processes, something that I didn't
>> even know existed until I ran out of inodes.
>>
>> My question is this:  How can I make it so that these periodic processes
>> simply log their messages instead of sending emails that get stuck in
>> clientmqueue?  Alternatively, if I can't do that, how do I simply turn
>> off these emails entirely so that they are not sent?
>>     
>
> Hi Corey,
>
> If you don't already have an /etc/periodic.conf file, create one with
> the following entries:
>
> daily_output="/var/log/daily.log"                       # user or /file
> daily_status_security_output="/var/log/daily.log"       # user or /file
> weekly_output="/var/log/weekly.log"                     # user or /file
> monthly_output="/var/log/monthly.log"                   # user or /file
>
> All of the output from the periodic scripts will be redirected to those
> files.  You'll likely want to rotate those files regularly.  I have the
> following in my /etc/newsyslog.conf file:
>
> /var/log/daily.log                      640  7     *    @T00  JN
> /var/log/monthly.log                    640  12    *    $M1D0 JN
> /var/log/weekly.log                     640  5     1    $W6D0 JN
>
> Regards,
> Greg
> - --
> Greg Larkin
>
> http://www.FreeBSD.org/       - The Power To Serve
> http://www.sourcehosting.net/ - Ready. Set. Code.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFI7iGE0sRouByUApARAlgaAKCnyDbq5X4of+7s6MNgt0HI2GWqZQCgxBW/
> aL8nyZHG/qc7CAt+QCs6bH4=
> =FvE1
> -----END PGP SIGNATURE-----
>
>
>   

-- 

/
/*/Corey Dulecki
Vice President of Product Development
/**@**In**ternationalServices
**office*:   770.414.6000 /ext/ 707
 *web*:www.InternationalServices.com
___________________________________________________________
   
This mail may contain confidential and/or privileged information. If you 
are
not the intended recipient (or have received this mail in error) please 
notify
the sender immediately and destroy this email. Any unauthorized copying,
disclosure or distribution of the material in this email is strictly 
forbidden.
___________________________________________________________




More information about the freebsd-questions mailing list