[opensuse] How to Control the Scheduling of Daily System Housekeeping Activities?
Hi, The daily regeneration of my locate database (the execution of "updatedb") is occurring at an inopportune time and I'd like to change it (this system runs 24/7). How can this be accomplished? Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 01 February 2009 17:50:07 Randall R Schulz wrote:
Hi,
The daily regeneration of my locate database (the execution of "updatedb") is occurring at an inopportune time and I'd like to change it (this system runs 24/7).
How can this be accomplished?
A few possibilities, depending on which suse version you have. Something that will work on all versions, is to remove the script from /etc/cron.daily, put it someplace else, and add a separate entry for it in /etc/crontab Or, at least in later suse versions, you can edit /etc/sysconfig/cron and set DAILY_TIME to the time at which you want it to run, but this will then affect all jobs in cron.daily Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday February 1 2009, Anders Johansson wrote:
On Sunday 01 February 2009 17:50:07 Randall R Schulz wrote:
Hi,
The daily regeneration of my locate database (the execution of "updatedb") is occurring at an inopportune time and I'd like to change it (this system runs 24/7).
How can this be accomplished?
A few possibilities, depending on which suse version you have.
Sorry, that was remiss of me. It's openSUSE 11.1.
Something that will work on all versions, is to remove the script from /etc/cron.daily, put it someplace else, and add a separate entry for it in /etc/crontab
Or, at least in later suse versions, you can edit /etc/sysconfig/cron and set DAILY_TIME to the time at which you want it to run, but this will then affect all jobs in cron.daily
Thanks (to both you and Pat). This sounds like the best approach.
Anders
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday February 1 2009, Anders Johansson wrote:
On Sunday 01 February 2009 17:50:07 Randall R Schulz wrote:
Hi,
The daily regeneration of my locate database (the execution of "updatedb") is occurring at an inopportune time and I'd like to change it (this system runs 24/7).
How can this be accomplished?
...
... in later suse versions, you can edit /etc/sysconfig/cron and set DAILY_TIME to the time at which you want it to run, but this will then affect all jobs in cron.daily
One follow-up: After changing this configuration parameter, what, if anything, must I do to put it into effect?
Anders
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 01 February 2009 20:04:51 Randall R Schulz wrote:
... in later suse versions, you can edit /etc/sysconfig/cron and set DAILY_TIME to the time at which you want it to run, but this will then affect all jobs in cron.daily
One follow-up: After changing this configuration parameter, what, if anything, must I do to put it into effect?
Nothing. /etc/sysconfig/cron gets read every time run-crons runs (every 15 minutes) and automatically takes effect Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday February 1 2009, Anders Johansson wrote:
On Sunday 01 February 2009 20:04:51 Randall R Schulz wrote:
... in later suse versions, you can edit /etc/sysconfig/cron and set DAILY_TIME to the time at which you want it to run, but this will then affect all jobs in cron.daily
One follow-up: After changing this configuration parameter, what, if anything, must I do to put it into effect?
Nothing. /etc/sysconfig/cron gets read every time run-crons runs (every 15 minutes) and automatically takes effect
Great. Thanks again.
Anders
RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Randall R Schulz <rschulz@sonic.net> [02-01-09 11:51]:
The daily regeneration of my locate database (the execution of "updatedb") is occurring at an inopportune time and I'd like to change it (this system runs 24/7).
On my box (SLED 10) yast2 -> sysconfig editor -> System -> Cron -> DAILY_TIME or, in /etc/sysconfig/cron edit "DAILY_TIME=<desired_time>" (about 66 lines down) -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Anders Johansson
-
Patrick Shanahan
-
Randall R Schulz