Bug 19787 - hardcoded "clock" service in rc.sysinit
Summary: hardcoded "clock" service in rc.sysinit
Status: CLOSED FIXED
Alias: None
Product: Branch 4.0
Classification: Distributions
Component: startup (show other bugs)
Version: 4.0
Hardware: all Linux
: P3 normal
Assignee: Dmitry V. Levin
QA Contact: Q.A. 4.0
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 12:59 MSD by Mike Lykov
Modified: 2009-08-17 07:47 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lykov 2009-04-27 12:59:01 MSD
в rc,sysinit прописано два вызова сервиса clock
...
# Set the system clock (when /etc/adjtime is missing)
[ -s /etc/adjtime ] || /etc/init.d/clock start

и еще раз после # Remount the root filesystem read-write
# Set the system clock (when /etc/adjtime is present)
[ ! -s /etc/adjtime ] || /etc/init.d/clock start

проблема в том, что в openvz-контейнере, где этот сервис надо бы отключить
(no clock setting is required/allowed in container) 
его прописывание в rc.sysinit, а не как обычно в rcN.d, не дает возможности 
это сделать корректно.

если есть возможность перенести вызов из rc.sysinit в rcN.d, было бы неплохо (а то в логе регулярно hwclock: hwclock: Cannot access the Hardware Clock via any known method.
Comment 1 Dmitry V. Levin 2009-06-01 01:19:33 MSD
Извините, забыл ответить вам сразу.  Предполагаемое изменение находится по адресу
http://git.altlinux.org/people/ldv/packages/?p=startup.git;a=commit;h=0.9.8.21-alt1-1-g98c465a
Comment 2 Mike Lykov 2009-06-02 07:55:31 MSD
надеюсь, оно попадет в следующую сборку пакета (и потом в следующий дистрибутив типа server ;)
Comment 3 Repository Robot 2009-08-17 07:47:03 MSD
startup-0.9.8.22-alt1 -> sisyphus:

* Mon Aug 17 2009 Dmitry V. Levin <ldv@altlinux> 0.9.8.22-alt1

- rc.d/init.d/clock, sysconfig/clock: Introduced
  HWCLOCK_SET_TIME_AT_START (closes: #19787).
- sysctl.conf: Added "vm.mmap_min_addr = 65536".