Time difference

Need some help please.

I am running SCO Openserver 5.07 on a Windows 2003 Server with VMware Server 1
If I run
# ps -ef|grep /etc/cron

the date that it shows the cron process started is older than the date I get from running the uptime command.

In other words it looks like the date for the cron didn't reset or restart after a reboot.

This server has been running for a few years now and only now I get this issue

Anybody had this problem before?

I have no idea where to start looking for an explanation. :(:wall:

'uptime' gets its data from the file /etc/utmp. It is possible that the file has been corrupted.
Also since we changed to standard time:
If boot time was Saturday Nov 5, 2011 at 23:59.Daylight savings time.
At 8 am Sunday Nov 6 is uptime 8 hours or 9 hours?
Also your premise that uptime starts when /etc/cron starts is false.
If cron is restarted, or if there is maintenance done in single user mode the the times will be different.

1 Like

I found another thread on this site where a guy had an issue where the users are logged in longer than the uptime. The replies he got was also todo with the utmp and wtmp files

So I cleared all the following files.

/etc/utmp
/etc/utmpx
/etc/wtmp
/etc/wtmpx

and rebooted the server

I will have to monitor and see what happens