Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> tried to change zones in centos and have crashed the server, some commands crashed the server
post Jun 2 2008, 11:53 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 2-June 08
Member No.: 13,498


a requirement was to change the zonefile in linux to point to denver to match its timezone

this may be a little wrong but the commands i issued:

mv /etc/localtime /etc/localtimeOLD
ln -s /usr/share/zoneinfo/America/Denver /etc/localtime
clock -w
echo "clock -s" > /sbin/hwclock
chmod +x /sbin/hwclock

the server started lagging and the loads shot up, upon a reboot it keeps complaining that its out of memory, see following img:

any ideas?
Go to the top of the page
+Quote Post
post Jun 2 2008, 05:05 PM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
Joined: 23-January 03
Member No.: 360

You also need to set the ZONE entry in the file /etc/sysconfig/clock file (e.g. "America/Denver")

To reset the clock use the following command:
/sbin/hwclock --systohc

instead of
clock -w
echo "clock -s" > /sbin/hwclock
chmod +x /sbin/hwclock

hwclock is a binary program. Thecommand "echo "clock -s" > /sbin/hwclock" basically overwrote the program with the text "clock -s". You need to replace this program.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th July 2018 - 09:51 PM