Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
# 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?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

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.

share|improve this answer
add comment

Google is your friend. From here:

Try export TZ=bst0gmt and set the time with the date command.

share|improve this answer
1  
I'm reasonably sure this makes no difference - doing it through smit will change the timezone for new root sessions without a reboot. The problem is already running services. –  EightBitTony Jul 20 '11 at 16:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.