|
原来的方法是说在/etc/rc.conf中改
#time
CLOCK="UTC"
为
#time
CLOCK="local"
但是,最近,我注意到CLOCK一段已经从最新的rc.conf中去除了,当然你可以手工添加这段。不过,大家最好关注一下这个。
/etc/init.d/clock
启动级别是boot,而且是kernel级的服务。
它的配置文件在
/etc/conf.d/clock
让我们看看它。
[PHP]# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/clock,v 1.2 2004/10/25 06:25:32 vapier Exp $
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time). If your clock is set to the local time, then
# set CLOCK to "local".
# 默认是UTC,因此,如果你在rc.conf里面改了为local的话,这里也得改成local;而且,rc.conf里的,我想可以不要了。因为,启动时的时区设置,已这里为准
CLOCK="local"
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here.
#这段不懂,不用理
CLOCK_OPTS=""
# If you want to sync the system clock to the hardware clock during
# shutdown, then say "yes" here.
# 说gentoo计算时间不准的,看这里,为no的时候,gentoo不会同步计算的硬件时间为gentoo的系统时间。也就是说,每次启动的时候gentoo从硬件读取时间,但是却从不改变它。那么,你再遇到时间不准,只能承认这是你自己的硬件的问题,跟gentoo无关
#PS:硬件时间就是BIOS的时间了。
#PS2:不该变时间是默认选项
CLOCK_SYSTOHC="no"
#下面的设置,与alpha处理器架构的有关。So,pass
### ALPHA SPECIFIC OPTIONS ###
# If your alpha uses the SRM console, set this to "yes".
SRM="no"
# If your alpha uses the ARC console, set this to "yes".
ARC="no"[/PHP] |
|