Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 162486

Summary: clock should not complain about Factory when TIMEZONE is set to UTC
Product: Gentoo Linux Reporter: DEMAINE Benoît-Pierre, aka DoubleHP <dhp_gentoo>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: enhancement CC: celso.fernandes
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description DEMAINE Benoît-Pierre, aka DoubleHP 2007-01-17 05:50:54 UTC
At boot time, and when I restart the service, I am warned:
 * Service clock starting
 Your TIMEZONE in /etc/conf.d/clock is still set to Factory!

so ... "yes I know, and whats the matter ? any thing wrong with the fact I am happy with default TIMEZONE set to UTC ?" 

Initscript complain as if something was wrong. and what about if admin really do want to have clock set to UTC ? 

I think /etc/conf.d/clock should contain an additionnal variable; init script should only complain if somthing like
HAD_BEEN_CUSTOMISED="no"
was set, and shut up when switching it to yes.

Because I do like UTC, and clock init script prompt at every boot as if something was wronf, what becomes frustrating with time.

Similar process exist in DHCPd and Amsrtmontools boot scripts.
Comment 1 SpanKY gentoo-dev 2007-01-17 06:09:36 UTC
TIMEZONE="UTC"
Comment 2 Celso Fernandes (icezimm) 2007-04-05 11:30:59 UTC
--- clock	2007-04-05 08:27:06.000000000 -0300
+++ clock.orig	2007-04-05 08:26:49.000000000 -0300
@@ -57,7 +57,7 @@
 	# Make sure people set their timezone ... we do it here
 	# even though we don't actually use the variable so that
 	# people see the warning on boot.
-	if [[ ${CLOCK:-Factory} == "Factory" ]] ; then
+	if [[ ${TIMEZONE:-Factory} == "Factory" ]] ; then
 		ewarn "Your TIMEZONE in /etc/conf.d/clock is still set to Factory!"
 	fi
 }


I made this to solve the problem, because init.d/clock make sure you aren't using rc.conf and using conf.d/clock, and in this conf file the comments is to you set your timezone at CLOCK variable, that's why I prefered changed my init.d/clock

cya.
Comment 3 SpanKY gentoo-dev 2007-04-06 05:29:06 UTC
your system is out of date, current baselayout's clock init.d does not look like that
Comment 4 Celso Fernandes (icezimm) 2007-04-07 14:36:30 UTC
(In reply to comment #3)
> your system is out of date, current baselayout's clock init.d does not look
> like that
> 

I gave a emerge --sync right now, than emerge -uD world -pv doesn't show me any update on clock..
I always put the update of init.d scripts in the place of my olds one, doesn't know what happened.

Sorry for this inconvenience with this bug, I'll use this init.d modified till next update, than I post what happened here.

Thanks.