LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-29-2006, 05:10 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
Crontab's best practices?


Guys,

we usually put custom cron's into individual users' profile via 'crontab -e'

There are also some system crons in /etc/cron.daily etc...

do you guys put it there? I've learnt from a redhat course that its 'best practice' to put in the indivdual profile. One major difference is putting there, I can control the exact time I want to happen, whereas those in /etc/cron.* are fixed to a time specified in /etc/crontab

other than that... just good habits.

Just wondering: If this is true and that many of you are following suit?
 
Old 08-29-2006, 09:27 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Correct. For cronjobs, you should place them in the user's profile.

-twantrd
 
Old 08-29-2006, 09:38 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
For system-level cronjobs, I generally use /etc/cron.{hourly,daily,weekly,monthly} etc. Things I want to stagger go in /etc/crontab and user cron jobs in the individual crontabs.
 
Old 08-29-2006, 10:33 PM   #4
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
hmm so what defines a 'system level' cronjob?
 
Old 08-30-2006, 12:40 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by Swakoo
hmm so what defines a 'system level' cronjob?
Well, cronjobs that backup my entire system (or large parts) to a remote server, cronjobs that update the locatedb, a periodic emerge sync (gentoo), and similar tasks.

At least, that's how I see it: if it's not specific to a user, it's a system job.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partitioning best practices tantan Linux - Enterprise 1 05-10-2006 05:22 AM
Partitioning: Best Practices newtype Linux - General 2 06-05-2004 07:44 AM
Best practices for upgrading hyper guy General 5 05-28-2004 12:39 AM
crontab's not working herc Linux - Software 6 12-31-2003 09:10 AM
Best Practices mooreted Linux - Software 4 06-12-2003 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration