Help - Search - Members - Calendar
Full Version: tried to change zones in centos and have crashed the server
Linuxhelp > Support > Technical Support

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?
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.