ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Borovoy M." <massa_lists@pisem.net>
To: community@altlinux.ru
Subject: Re: [Comm] Измнение времени
Date: Thu, 30 Oct 2003 01:24:31 +0300
Message-ID: <3FA03E1F.8020401@pisem.net> (raw)
In-Reply-To: <1348913699.20031027140851@amos.ru>

Ivanov Maxim пишет:

> Здравствуйте, Scor2k.
> 
> Вы писали 27 октября 2003 г., 13:51:19:
> 
> 
>>>Скажите пожалуйста, какой командой с консоли можно поменять текущее
>>>время так, чтобы оно обновилось и в BIOS'е тоже. Команда
>>>date MMDDhhmm не обновляет системное время, а только время текущего
>>>сеанса. После перезагрузки машины восстанавливается время из BIOS.
> 
> 
> S> Почитай про hwclock.
> 
> Спасибо, разобрался.
> Там есть еще опция
>  hwclock --set --date=newdate [--correct=correction]
> 
>  correct=
>  
>   Он умеет синхронизироваться? Вернее, корректируется с ЧЕМ?

hwclock --systohc
Устанавливает время аппаратных часов в соответсвии со временем в ОС.

У меня на сервере через cron вызывается каждую ночь
/usr/sbin/ntpdate server 2>&1 >/var/log/ntpdate; /sbin/hwclock --systohc

В качестве сервера времени лучше использовать NTP сервер своего провайдера.

-- 
С уважением, Боровой Михаил



      parent reply	other threads:[~2003-10-29 22:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-27 10:38 Ivanov Maxim
2003-10-27 10:51 ` Scor2k
2003-10-27 11:08   ` Re[2]: " Ivanov Maxim
2003-10-27 13:03     ` Scor2k
2003-10-29 22:24     ` Borovoy M. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FA03E1F.8020401@pisem.net \
    --to=massa_lists@pisem.net \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git