PDA

View Full Version : Utc


jvillain
24th June 2011, 05:24 PM
I am getting the following error on load.

Cannot add dependency job for unit hwclock-load.service, ignoring: Unit hwclock-load.service failed to load: No such file or directory. See system logs and 'systemctl status' for details.

A 'yum whatprovides */ hwclock-load.service' comes back blank so I wanted to check that my system was set to UTC so I can just delete the sysmlink some thing put in there. But the old config file doesn't seem to exist any more. If is is supposed to be set in systemd that doesn't seem to exist. The system-settings gui thingy does not set UTC the way that setup used to.

Any idea how you check and set UTC on a system these days?

DBelton
24th June 2011, 05:50 PM
look in your /etc/adjtime file and see if it is set to UTC or LOCAL


[root@tower20 ~]# cat /etc/adjtime
0.040247 1308723388 0.000000
1308723388
UTC


If you wish to disable the hwclock-load.service:


systemctl disable hwclock-load.service

marko
24th June 2011, 06:19 PM
yum whatprovides */hwclock-load.service'
yum install systemd-unitswould provide /lib/systemd/system/hwclock-load.service for you.


Any idea how you check and set UTC on a system these days? Just like always you can do that with

hwclock --set


see man hwclock or more attractively, fire up konqueror browser and type in man:hwclock as the location

jvillain
24th June 2011, 10:06 PM
I have the latest and greatest systemd-units installed

rpm -ql systemd-units |grep hwclock-load.service

comes back with nothing.

hwclock --systohc --utc

got it done thanks.

marko
25th June 2011, 02:11 AM
I have the latest and greatest systemd-units installed

rpm -ql systemd-units |grep hwclock-load.service

comes back with nothing.
Which is odd since I have it in mine, I have this version:

rpm -q systemd-units
systemd-units-26-4.fc15.x86_64

rpm -qvl systemd-units | grep hwclock-load.service
-rw-r--r-- 1 root root 1203 Jun 15 17:15 /lib/systemd/system/hwclock-load.service

Do you have 26-4 ?

jvillain
30th June 2011, 11:40 PM
systemd-units-29-1.fc16.x86_64

Palo Travel Photos on Instagram - Senago Photos - Guangshui Instagram Photos