LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2013, 12:58 AM   #1
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Rep: Reputation: Disabled
Daemon service taking US timing


Dear Everyone,

I have some 8 service i am running those services using daemon tool

root@ip-10-12-195-154:[/usr/isac/tools]
$ echo $TZ
/usr/share/zoneinfo/Asia/Calcutta

I have set this in bash_profile file so that we i reboot the system it will take this time

But the problem is that when i run that services manually it will take Indian time zone but when i run those using daemontools it will use as a US timing.

Please can anyone Help me on this

Thanks & regards,
Gajanan Hiroji
 
Old 01-31-2013, 01:43 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Setting this in your bash_profile will not make it system wide. It will only set it for users that log in (assuming you are talking about /etc/bash_profile).

You need to set /etc/localtime to the appropriate TZ.

You don't mention the Linux distro you are using, so here's a general way to do it:
- Run tzselect to get the appropriate entry (seems to be /usr/share/zoneinfo/Asia/Calcutta in your case)
- Now you can copy this to /etc/localtime:
Code:
cp -v --remove-destination /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
 
Old 01-31-2013, 01:57 AM   #3
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear druuna,

root@ip-10-12-195-154:[/etc]
$ vi localtime

localtime contains some encrypted code i not able to change in that.
 
Old 01-31-2013, 02:00 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by gajananh999 View Post
Dear druuna,

root@ip-10-12-195-154:[/etc]
$ vi localtime

localtime contains some encrypted code i not able to change in that.
That is correct. Why are you trying to open /etc/localtime with an editor?
 
1 members found this post helpful.
Old 01-31-2013, 02:00 AM   #5
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear Druuna

Thank you very much its done.

Last edited by gajananh999; 01-31-2013 at 02:07 AM.
 
Old 01-31-2013, 02:02 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by gajananh999 View Post
Dear Druuna

At the end of the /etc/localtime

EST5EDT,M3.2.0,M11.1.0

this is set
so i have make this as

IST-5:30

I am i rite?
Please read post #2 carefully. The actions needed are there.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Taking over small website - what questions for the hosting service provider? pljvaldez Programming 13 09-02-2011 04:52 PM
rtkit-daemon[23904]: The canary thread is apparently starving. Taking action? Freeze MikeyCarter Linux - Software 0 09-15-2010 11:25 AM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 05:51 PM
How to make TCP server a daemon / service much like a dhcpd service? rajat Linux - Networking 1 05-22-2007 01:29 AM
how to start timing and print the timing result on portions of java codes ?? alred Programming 2 05-15-2006 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration