LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-20-2013, 09:40 AM   #1
eeps24
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Rep: Reputation: Disabled
Question Do I need to refresh the crontab after editing?


I made changes to the crontab, do I need to refresh for my changes to take effect? If so, how?
 
Old 06-20-2013, 10:08 AM   #2
dayid
Member
 
Registered: Apr 2012
Location: Austin, TX
Posts: 44

Rep: Reputation: Disabled
After successfully/properly editing a crontab for a user, after you write the file and exit, you should see this:
Code:
"crontab.yciBZ6/crontab" 24L, 1887C written
crontab: installing new crontab
At that moment the new crontab file that was installed will be processed. There is no need to restart the cron daemon.

from the cron manual page:
Quote:
Originally Posted by man cron
(...) cron then wakes up every minute, examining all stored crontabs, checking each command to see if it shoud be run in the current minute. (...) Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on the /etc/crontab file) has changed, and if it has, cron will then examine the modtime on all crontabs files and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified. Note that the crontab(1) command updates the modtime of the spool directory whenever it changes a crontab.

Last edited by dayid; 06-20-2013 at 10:11 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
editing crontab meniscus Linux - Newbie 5 12-11-2006 09:33 AM
Crontab editing chobin SUSE / openSUSE 12 06-01-2006 10:12 AM
editing crontab mfran2002 Linux - Software 2 02-20-2006 07:09 AM
editing crontab djgerbavore Slackware 12 05-30-2005 09:24 PM
editing refresh rate in xorg.conf does nothing Riallin Slackware 22 02-28-2005 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:10 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