Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2005 22:12:11 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Ladislav Bodnar <distro.watch@msa.hinet.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Time zone change confuses cron
Message-ID:  <20050329041211.GA72462@dan.emsphone.com>
In-Reply-To: <200503290758.14387.distro.watch@msa.hinet.net>
References:  <200503290758.14387.distro.watch@msa.hinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 29), Ladislav Bodnar said:
> I've just changed the system time zone from local time to UTC by
> copying /usr/share/zoneinfo/Etc/UTC to /etc/localtime. To my dismay,
> I found that crontab (both /etc/crontab and user-level crontab)
> completely ignores the change and continues executing scripts
> according to the old time.

If you haven't rebooted yet, restart cron.  A process reads timezone
settings only once, during startup.  You're not supposed to pull the
rug out from under its feet by switching /etc/localtime :)

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050329041211.GA72462>