Changing only time zone file not the timezone without reboot


 
Thread Tools Search this Thread
Operating Systems Solaris Changing only time zone file not the timezone without reboot
# 1  
Old 04-29-2015
Changing only time zone file not the timezone without reboot

Hello all,

I just want to update the timezone file with new file to update the time, so the zone in /etc/TIMEZONE will be the same but the file it refers to will be changed, and the local time should be changed, can this take effect without rebooting Solaris 10?
# 2  
Old 05-06-2015
Timezone is the representation of the system time.
If you change the timezone, applications might continue with the old representation, until they are restartet.
# 3  
Old 05-06-2015
Quote:
Originally Posted by Amr.Es
I just want to update the timezone file with new file to update the time, so the zone in /etc/TIMEZONE will be the same but the file it refers to will be changed, and the local time should be changed
It is both unclear what file you plan to change and what need to be changed in it.

Can you provide more details about what is precisely expected?
# 4  
Old 05-10-2015
Thanks for your Reply

/etc/TIMEZONE contains a timezone for example TZ=Africa/Tripoli as i know in solaris 10 to change this timezone i must restart the server so I will leave it as is and replace Tripoli file itself that contains new time (GMT+2 instead of GMT+3) so how to make this file take effect on the system without restarting the server?
# 5  
Old 05-10-2015
No matter what files you change, the TZ setting of already running processes will not be affected. If you want to change the TZ setting in an application that is running, you need to restart that application.
# 6  
Old 05-10-2015
If I understand properly, you do not want to change the timezone which will remain TZ=Africa/Tripoli but you want to replace the file storing the timezone definition, here /usr/share/lib/zoneinfo/Africa/Tripoli, by a file containing a different definition, presumably built with the zic command.

Assuming this is what you want to do, changes should affect the existing and future processes time representation immediately, i.e. without requiring a reboot. However, this is unsupported and there is a risk for a Solaris patch to overwrite your customized timezone.

Last edited by jlliagre; 05-11-2015 at 06:41 PM..
# 7  
Old 05-11-2015
Of course any new processes after the update will pick up the new timezone and that could mess up any logs that you write.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 global zone timezone

Am new on Solaris If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too . What we follow and best practice in Solaris Sparc servers . Thanks in advance . (2 Replies)
Discussion started by: Shirishlnx
2 Replies

2. Red Hat

Changing java timezone on RHEL 5

Hi all, I faced with some problem when I changing java timezone on RHEL 5. I used tzupdater.jar tool from oracle to update java timezone. But I missed stopping applications before I run tzupdater tool. So some applications working with wrong timezone. I think there's some cached instance of... (0 Replies)
Discussion started by: sembii
0 Replies

3. Solaris

[Solved] Question changing timezone rules / zic

Dear, One of our customer which is located in Iraq/Baghdad, has informed us about a official change in daylight saving time in few days later and has asked us to fix this issue. So, the current timezone of that system is set as 'Asia/Baghdad' which is correct. however to fix the issue I went... (0 Replies)
Discussion started by: Anti_Evil
0 Replies

4. Solaris

Changing the timezone to GMT+1

Hello everyone, Can you please help me with this problem? I want to change the timezone of my Solaris 10 system. I found on internet that I should do the following steps: 1- Edit the /etc/TIMEZONE file 2- restart the system : init 6 My question is : In the file /etc/TIMEZONE I should... (5 Replies)
Discussion started by: adilyos
5 Replies

5. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

6. Solaris

Can i reboot a zone when i logged in the zone

I am curious to know if I can reboot a zone while I was inside the zone itself. By doing so can I know what happens to the zone and what are the pros and cons. Is it recommended or not? Is that zone will properly shuts down; :confused::confused::confused: (7 Replies)
Discussion started by: srinivas1049
7 Replies

7. AIX

changing the time zone in aix

hi may aix version is 6100-06-03-1048 when i give date command it shows the time zone as root@cbspsgui01 #date Fri Sep 16 08:43:42 Africa/Johannesburg 2011 I want to change the time zone to GMT +02:00: After i change the time zone it should show something like the one below when i type... (2 Replies)
Discussion started by: newtoaixos
2 Replies

8. Red Hat

changing timezone

Hi, I would like to change time zone Linux from IST to US/Canada but not getting the option , I have run the command setup -> timezone configuration but not getting the option of us/canada or pacific us/canada. Please suggest. Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

9. Solaris

changing time zone from ist to bst

Hi, Can anybody tell me how to change time zone from ist to bst, What changes should be done in /etc/TIMEZONE file. wheather it is possible to change timezone without rebooting the server. Regards Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

10. UNIX for Advanced & Expert Users

TimeZone changing in Solaris

I've date back one of my Unix WS ,after that again i want to return to real date,but after running: # date -u mmddHHMMyy the clock immediately returns to GMT timezone that is different with my local timezone. any suggestion could be useful... tanx --nikk (2 Replies)
Discussion started by: nikk
2 Replies
Login or Register to Ask a Question