238
Chapter 9 Operation and Maintenance
● Changing the Time Settings for the OS and Hardware Clock
In a Linux environment, the time displayed on the OS (the software clock value on the OS) is written to
the hardware clock on the server when the OS is shut down.
• Procedure for prohibiting the time on the OS from being written to the hardware clock
When you do not want the time on the OS to be written to the hardware clock at an OS shutdown,
comment the following line out in /etc/rc0.d/S01halt.
runcmd $"Syncing hardware clock to system time" /sbin/hwclock $CLOCKFLAGS
→#runcmd $"Syncing hardware clock to system time" /sbin/hwclock $CLOCKFLAGS
• Procedure for reflecting the hardware clock value to the time on the OS
To reflect the hardware clock value to the software clock value on the OS, run the following
command.
>hwclock --hctosys