How to change timezone to UTC without rebooting AIX

aixtime

# oslevel
6.1.0.0

From smitty it say's it needs a reboot, but I don't want to reboot. How can I change the TimeZone to UTC without rebooting?

Best Answer

You can change the timezone with smitty, the reason it wants a reboot is because services like cron are running with the old settings.

In order to avoid the reboot you would need to,

  1. change the timezone with smitty
  2. log off, log on again, and switch to a new root session
  3. that session will have the right timezone
  4. now you need to stop every single service that cares about the timezone and restart them all again.
  5. then you realise you can't stop/start init, and you end up rebooting anyway.

If you don't care that services are running with the wrong timezone, then you don't need to reboot the server.

As a minimum, to avoid rebooting you should kill cron and let init restart it. Other services may or may not need restarting depending on your preference and what logs you don't mind being wrong.

Related Question