ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Hardware clock
@ 2006-07-26 18:29 Ivan Adzhubey
  2006-07-26 19:25 ` Sergey S. Skulachenko
  2006-07-30 16:12 ` Dmitry V. Levin
  0 siblings, 2 replies; 3+ messages in thread
From: Ivan Adzhubey @ 2006-07-26 18:29 UTC (permalink / raw)
  To: sisyphus

Пытаюсь настроить запись времени в системные часы при остановке компьютера -- 
не работает. В /etc/sysconfig/clock прописано:

HWCLOCK_SET_AT_HALT=true

но ничего не происходит. Пытаюсь разобраться в инит-скриптах, вижу 
в /etc/init.d/clock:

        stop)
                if is_yes "$HWCLOCK_SET_AT_HALT" && clock_unsynced; then
                        # action cannot be used in this context.
                        echo -n "Setting hardware clock$CLOCKDEF: `date` "
                        /sbin/hwclock --systohc $CLOCKFLAGS && echo_success || 
echo_failure
                        RETVAL=$?
                        echo
                fi
                ;;

И не могу найти, где определена функция (или переменная?) clock_unsynced. Баг?

-- 
Иван

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Hardware clock
  2006-07-26 18:29 [sisyphus] Hardware clock Ivan Adzhubey
@ 2006-07-26 19:25 ` Sergey S. Skulachenko
  2006-07-30 16:12 ` Dmitry V. Levin
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey S. Skulachenko @ 2006-07-26 19:25 UTC (permalink / raw)
  To: sisyphus

On Wed, 26 Jul 2006 14:29:04 -0400
Ivan Adzhubey wrote:

> Пытаюсь настроить запись времени в системные часы при
> остановке компьютера -- не работает. В /etc/sysconfig/clock
> прописано:
> 
> HWCLOCK_SET_AT_HALT=true

У меня этот файл выглядит полностью так:

> UTC=false
> HWCLOCK_SET_AT_HALT=true
> ARC=false
> HWCLOCK_ADJUST=true
> ZONE=Europe/Moscow

Часики подвожу с помощью ntpdate. Больше никаких забот.

-- 
С уважением,
С.С.Скулаченко


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Hardware clock
  2006-07-26 18:29 [sisyphus] Hardware clock Ivan Adzhubey
  2006-07-26 19:25 ` Sergey S. Skulachenko
@ 2006-07-30 16:12 ` Dmitry V. Levin
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2006-07-30 16:12 UTC (permalink / raw)
  To: ALT Linux Sisyphus mailing list

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

On Wed, Jul 26, 2006 at 02:29:04PM -0400, Ivan Adzhubey wrote:
> Пытаюсь настроить запись времени в системные часы при остановке компьютера -- 
> не работает. В /etc/sysconfig/clock прописано:
> 
> HWCLOCK_SET_AT_HALT=true
> 
> но ничего не происходит. Пытаюсь разобраться в инит-скриптах, вижу 
> в /etc/init.d/clock:
> 
>         stop)
>                 if is_yes "$HWCLOCK_SET_AT_HALT" && clock_unsynced; then
>                         # action cannot be used in this context.
>                         echo -n "Setting hardware clock$CLOCKDEF: `date` "
>                         /sbin/hwclock --systohc $CLOCKFLAGS && echo_success || 
> echo_failure
>                         RETVAL=$?
>                         echo
>                 fi
>                 ;;
> 
> И не могу найти, где определена функция (или переменная?) clock_unsynced. Баг?

$ rpmquery -f /bin/clock_unsynced 
hwclock-2.24-alt1
$ rpmquery -R startup |grep -w hwclock
hwclock >= 0:2.23-alt6


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-30 16:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-26 18:29 [sisyphus] Hardware clock Ivan Adzhubey
2006-07-26 19:25 ` Sergey S. Skulachenko
2006-07-30 16:12 ` Dmitry V. Levin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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