[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] cron.hourly
- Subject: Re: [cobalt-users] cron.hourly
- From: Jeff Lasman <jblists@xxxxxxxxxxxxx>
- Date: Mon Jan 29 00:37:02 2001
- Organization: nobaloney.net
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
fastmedia wrote:
> if i put a symlink to a script in the cron.hourly directory, will it run
> hourly? do i need to lodge a crontab, or so? or will cron look in
> cron.hourly automatically?
Scripts in cron.hourly will run automatically, every hour.
For example, because I like to synchronize the times on all my servers
hourly, I slightly modified a copy of the ntpupdate script in
cron.daily, and put it into cron.hourly.
Here it is (note that you may not get good results from the nameserver
I'm using):
#!/bin/sh
# NTPdate cron event
#
# ntpupdate.hourly
#
# modified by Jeff Lasman (nobaloney.net) 07/23/00
# for RaQ3
# modified from /etc/cron.daily/ntpdate.auto
# this file should be installed chmod 700 chown root:root
# in directory /etc/cron.hourly
#
# Copyright (C) 1998, Cobalt Networks, Inc
# All rights reserved
sleep 123
/usr/sbin/ntpdate ntp-cup.external.hp.com >>/var/cobalt/sauce.log 2>&1
/sbin/clock -w -u >>/var/cobalt/sauce.log 2>&1
rm /etc/adjtime
/sbin/clock -w -u >>/var/cobalt/sauce.log 2>&1
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA 92517
voice: (909) 787-8589 * fax: (909) 782-0205