Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78997 - init scripts should not 'need clock' but 'use clock'
Summary: init scripts should not 'need clock' but 'use clock'
Status: RESOLVED DUPLICATE of bug 70009
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 13:24 UTC by Benno Schulenberg
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benno Schulenberg 2005-01-21 13:24:12 UTC
If for some reason /etc/init.d/clock would fail, syslog and cron can and should still start, because the kernel knows what time it is anyway.  At least here it does (kernel 2.6.10) -- I found this out while printing $(date +%H:%M:%S.%N) after the "[ ok ]" message, the kernel knows the correct time right from the start when the scripts mount proc.

So I decided that I don't need the clock script (as I have no need for --adjust and --systohc either), brought it down with '/etc/init.d/clock stop', and was amazed to see it brought syslog and klog and cron down with it.

Stopping the clock service does not unset the system clock, so there is no need to stop the log and cron services.  And although it could be argued that these services should refuse to start if the system time hasn't been set successfully, I would prefer them to run with a wrong clock than not to run at all.  So those services should 'use clock' and not 'need clock'.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2005-01-21 15:23:24 UTC
file a bug each offending package

ive fixed the baselayout-specific scripts (bootmisc), but the other scripts you've mentioned have nothing to do with baselayout
Comment 2 Benno Schulenberg 2005-01-22 04:32:56 UTC
> ive fixed the baselayout-specific scripts (bootmisc)

But you didn't remove clock from the CRITICAL_SERVICES in /sbin/rc, so it would still start if it were rc-update delled.  (BTW, hadn't this CRITICAL_SERVICES variable better be defined somewhere in /etc/conf.d instead of in a script that gets overwritten every so often?)

> file a bug each offending package

Ehm, how to do that then?  Choose component 'Unspecified' and then put the package name in the Summary line?  I don't see an explanation on how to file a package-specific bug.  (And come on, Mike, you probably know who's responsible for sysklogd and vixie-cron and could forward them the bugnumber in a jiffie.)
Comment 3 SpanKY gentoo-dev 2005-01-30 11:05:38 UTC
that, unfortantely, is not a quick fix

*** This bug has been marked as a duplicate of 70009 ***