[axxs-sysadmin] wrong time on axxs.org - ntpdate?
boud at riseup.net
Sun Feb 25 15:15:07 PST 2007
i turned off ntpd and put in a cron.daily job to run ntpdate
instead. i didn't touch the timezone, which remains UTC-6.
You can test this with e.g.
TZ=GMT LC_ALL=C date # UTC
TZ=America/Merida LC_ALL=C date # UTC-6
Most sites should already use locale info to correct from UTC-6 to UTC
or whatever the preferred TZ is.
On Fri, 9 Feb 2007, Dave Fregon wrote:
> On Fri, 2007-02-09 at 15:48 +1300, Sebastian wrote:
>> kia ora koutou...
>> boud just made me and others aware in #axxs that the server is running
>> approx. 2 hours ahead in time. check with the command:
>> TZ=GMT LC_ALL=C date
>> on the server and on a trustworthy machine of your choice (e.g. your
>> this might cause weird behaviour by processes acting with the rest of
>> the world outside axxs.org. what do people think about installing stuff
>> like ntpdate to keep in sync?
> I think it's a good idea Sebastian, and it's already installed just not
> running? It _was_ setup, maybe an update has had it switched off?
> In Plesk admin, under Server / System Date and Time it just needs the
> time server and a checkbox selected, then save.
i tried the plesk interface "network server" checkbox, but it failed
(probably because the ntpd was running - no idea if that was plesk's
"fault" or not). Then i tried the "reset system time" checkbox, but it
didn't interact with the network server option, and instead got
horribly confused and made a big offset in time (many hours earlier
than the correct time). i corrected it within a few minutes. So a
small number of timestamps may be badly wrong by many hours. Sorry
about that. /me blames plesk.
The ntpdate script should now start up at boot
rc3.d/S59ntpdate -> ../init.d/ntpdate
and once a day by cron and the ntpd script has been turned off by
hand with "exit 0" in the script.
IMHO this ought to work and be stable.
> We should however talk to the sites on the server to see if they are not
> conpensating for this in their code first?
>> axxs-sysadmin mailing list
>> axxs-sysadmin at lists.indymedia.org
> 20 Chisholm St
> Wangaratta 3677
> +613 5722 9622
> axxs-sysadmin mailing list
> axxs-sysadmin at lists.indymedia.org
More information about the axxs-sysadmin