Koozali.org: home of the SME Server

Contents of stock /etc/cron.d?

Offline Michail Pappas

  • *
  • 351
  • +1/-0
Contents of stock /etc/cron.d?
« on: October 26, 2011, 09:39:28 AM »
Can someone please tell me whether the stock SME 7.5.1 (after updates of course) contains any/all of the following files:
Code: [Select]
-rw-r--r--  1 root root   269 Oct 22 13:26 smolt
-rw-r--r--  1 root root   188 Jul 22 09:01 sysstat
-rw-r--r--  1 root root   139 Jan  9  2007 mrtg
-rw-r--r--  1 root root   198 Mar 14  2006 purge_junkmail
-rw-r--r--  1 root root   111 Mar  8  2002 warnquota

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Contents of stock /etc/cron.d?
« Reply #1 on: October 26, 2011, 01:55:30 PM »
Here's the output of ls -lt /etc/cron.d on my SME 7.5.1 system:
Code: [Select]
-rw-r--r--  1 root root 188 Feb 17  2011 sysstat
-rw-r--r--  1 root root 268 Jul 24  2010 smolt
-rw-r--r--  1 root root 365 Nov 23  2009 LearnAsHam.cron
-rw-r--r--  1 root root 366 Nov 23  2009 LearnAsSpam.cron
-rw-r--r--  1 root root 425 Jul 28  2007 mailstats.cron
-rw-r--r--  1 root root 198 Mar 14  2006 purge_junkmail
-rw-r--r--  1 root root 111 Mar  7  2002 warnquota
LearnAsHam.cron, LearnAsSpam.cron and mailstats.cron were all added after installation from instructions in the wiki.

Offline Michail Pappas

  • *
  • 351
  • +1/-0
Re: Contents of stock /etc/cron.d?
« Reply #2 on: October 27, 2011, 10:17:47 PM »
Thanks for the info my friend. Are you perhaps aware whether these files also exist in 8.0b6?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Contents of stock /etc/cron.d?
« Reply #3 on: October 28, 2011, 10:49:00 PM »
Thanks for the info my friend. Are you perhaps aware whether these files also exist in 8.0b6?
Why are you asking? What is your issue or what are you after?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Michail Pappas

  • *
  • 351
  • +1/-0
Re: Contents of stock /etc/cron.d?
« Reply #4 on: October 29, 2011, 12:24:26 PM »
Why are you asking? What is your issue or what are you after?
Had one 7.5.1 installation that someone, unwisely, upgraded to 8.0b6. A number of leftover packages had to be cleaned (see other threads of mine here). So I was wondering whether these cron jobs were leftovers from 7.5.1 as well. Mainly asking because as far as I can see, most cron jobs are organized in /etc/cron.daily cron.weekly etc. And not /etc/cron.d

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Contents of stock /etc/cron.d?
« Reply #5 on: October 29, 2011, 01:08:30 PM »
Had one 7.5.1 installation that someone, unwisely, upgraded to 8.0b6. A number of leftover packages had to be cleaned (see other threads of mine here). So I was wondering whether these cron jobs were leftovers from 7.5.1 as well. Mainly asking because as far as I can see, most cron jobs are organized in /etc/cron.daily cron.weekly etc. And not /etc/cron.d
You should have been able to find out by using the rpm -q --whatprovides instructions IMHO.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Contents of stock /etc/cron.d?
« Reply #6 on: October 29, 2011, 05:05:07 PM »
You should have been able to find out by using the rpm -q --whatprovides instructions IMHO.
Cool.  I didn't know that rpm would do that!

On my (reasonably fresh) SME 8b6, I have three files /etc/cron.d:
-rw-r--r-- 1 root root 198 Mar 14  2006 purge_junkmail
-rw-r--r-- 1 root root 269 Sep 24 12:30 smolt
-rw-r--r-- 1 root root 111 Mar  7  2002 warnquota


And with cactus's prompting, I've figured out the following command, which lists all the filenames in the current directory and the rpms from which they come:
Code: [Select]
for f in *; do echo -e "$(pwd)/$f:\t$(rpm -qf $(pwd)/$f)"; done
.

On my SME8b6 system, the results look like this:
[root@sme8 ~]# cd /etc/cron.d
[root@sme8 cron.d]# for f in *; do echo -e "$(pwd)/$f:\t$(rpm -qf $(pwd)/$f)"; done
/etc/cron.d/purge_junkmail:     e-smith-email-5.2.0-14.el5.sme
/etc/cron.d/smolt:      smolt-1.4.3-4.el5.sme
/etc/cron.d/warnquota:  e-smith-quota-2.2.0-8.el5.sme


Which I think confirms that all three files came with SME8, since the release version for the rpms is "-x.el5.sme" instead of "-x.el4.sme".

On my SME 7 server, the same commands return:
[root@sme7 ~]# cd /etc/cron.d
[root@sme7 cron.d]# for f in *; do echo -e "$(pwd)/$f:\t$(rpm -qf $(pwd)/$f)"; done
/etc/cron.d/LearnAsHam.cron:    file /etc/cron.d/LearnAsHam.cron is not owned by any package
/etc/cron.d/LearnAsSpam.cron:   file /etc/cron.d/LearnAsSpam.cron is not owned by any package
/etc/cron.d/mailstats.cron:     file /etc/cron.d/mailstats.cron is not owned by any package
/etc/cron.d/purge_junkmail:     e-smith-email-5.0.0-9.el4.sme
/etc/cron.d/smolt:      smolt-1.4.3-4.el4.sme
/etc/cron.d/sysstat:    sysstat-5.0.5-27.el4
/etc/cron.d/warnquota:  e-smith-quota-2.0.0-2.el4.sme


(After which rpm -qfi /etc/cron.d/sysstat lets me know that this rpm came from CentOS...)