Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 25, 2012 7:23 am 
Offline
Junior Member
User avatar

Joined: Wed Feb 16, 2011 1:04 am
Posts: 24
Hello,

My cronjob for logwatch looks like this:

# m h dom mon dow command
0 1 * * * /usr/sbin/logwatch

Root is the only user who can run crons. But I get it twice every day within about 20 minutes of each other instead of just once. It's a dupe report of course. Does anyone have any clues as to why it is sent twice?

Best regards
Jacqueline


Top
   
PostPosted: Wed Jul 25, 2012 7:43 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Check /etc/cron.d and /etc/cron.daily for logwatch entries.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Wed Jul 25, 2012 8:19 am 
Offline
Junior Member
User avatar

Joined: Wed Feb 16, 2011 1:04 am
Posts: 24
Ahh. Thank you I found it in the cron.daily directory: 00logwatch

Code:
#!/bin/bash

#Check if removed-but-not-purged
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0

#execute
/usr/sbin/logwatch --output mail

#Note: It's possible to force the recipient in above command
#Just pass --mailto address@a.com instead of --output mail



Thank you.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group