- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- question regarding cron and DST
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 06:43 AM
тАО03-12-2007 06:43 AM
This shows that /var/adm/cron/log was updated at 11:20 this morning, but the date in the log file is one hour earlier.
root@host:/var/adm/cron>date
Mon Mar 12 11:25:44 CDT 2007
root@host:/var/adm/cron>ll log
-rw-r--r-- 1 root root 3176197 Mar 12 11:20 log
root@host:/var/adm/cron>tail log
< oracle 27521 c Mon Mar 12 10:00:00 CST 2007
> CMD: /home/oracle/scripts/legato/check_legato_status.sh > /home/oracle/scripts/legato/_check_legato_status.log 2>&1
> root 28902 c Mon Mar 12 10:05:00 CST 2007
< root 28902 c Mon Mar 12 10:05:01 CST 2007
> CMD: /home/oracle/scripts/misc/space_used.sh > /home/oracle/scripts/misc/_space_used.lst 2>&1
> oracle 1756 c Mon Mar 12 10:15:00 CST 2007
< oracle 1756 c Mon Mar 12 10:15:00 CST 2007
> CMD: /home/oracle/scripts/misc/space_used.sh > /home/oracle/scripts/misc/_space_used.lst 2>&1
> oracle 3230 c Mon Mar 12 10:20:00 CST 2007
< oracle 3230 c Mon Mar 12 10:20:00 CST 2007
This shows that cron didn't make the adjustment for DST at 2am, even though the o/s itself did.
> CMD: /home/oracle/scripts/legato/check_legato_status.sh > /home/oracle/scripts/legato/_check_legato_status.log 2>&1
> root 23148 c Sun Mar 11 01:55:00 CST 2007
< root 23148 c Sun Mar 11 01:55:00 CST 2007
> CMD: /home/oracle/scripts/misc/space_used.sh > /home/oracle/scripts/misc/_space_used.lst 2>&1
> oracle 23379 c Sun Mar 11 02:00:00 CST 2007
< oracle 23379 c Sun Mar 11 02:00:00 CST 2007
> CMD: /home/oracle/scripts/legato/check_legato_status.sh > /home/oracle/scripts/legato/_check_legato_status.log 2>&1
> root 23551 c Sun Mar 11 02:05:00 CST 2007
< root 23551 c Sun Mar 11 02:05:01 CST 2007
> CMD: /home/oracle/scripts/legato/check_legato_status.sh > /home/oracle/scripts/legato/_check_legato_status.log 2>&1
> root 23950 c Sun Mar 11 02:15:17 CST 2007
> CMD: /home/oracle/scripts/misc/space_used.sh > /home/oracle/scripts/misc/_space_used.lst 2>&1
> oracle 23951 c Sun Mar 11 02:15:17 CST 2007
< oracle 23951 c Sun Mar 11 02:15:17 CST 2007
< root 23950 c Sun Mar 11 02:15:17 CST 2007
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 06:49 AM
тАО03-12-2007 06:49 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:07 AM
тАО03-12-2007 07:07 AM
Re: question regarding cron and DST
There are special installation instructions with the patch:
"While it is not strictly required to reboot
the system after modifying the rules in the /usr/lib/tztab file, running processes using
a timezone with a changed rule need to be
restarted to apply the new rules. Processes
like cron(1M), which depend on proper
interpretation of timestamps in the future,
should be restarted as soon as possible.
Processes that only timestamp messages should be restarted before the changes take effect."
Most people just reboot so that everything is covered but you can just stop and restart cron or any other processes.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:10 AM
тАО03-12-2007 07:10 AM
Re: question regarding cron and DST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:13 AM
тАО03-12-2007 07:13 AM
Re: question regarding cron and DST
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:14 AM
тАО03-12-2007 07:14 AM
Re: question regarding cron and DST
That will stop/restart the cron daemon ( with a different PID) but why do you want to preserve the current PID ?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:17 AM
тАО03-12-2007 07:17 AM
Re: question regarding cron and DST
thanks Gentlemen,