LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-15-2010, 08:31 AM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
init uptime longer than system uptime?


How can init process uptime be longer than the uptime of whole system?

Code:
martin@server:~> ps -p 1 -o pid,cmd,bsdtime,start
  PID CMD                           TIME  STARTED
    1 init [3]                     20:50   Mar 05
martin@server:~> uptime
  2:23pm  up 559 days  1:42,  10 users,  load average: 0.18, 0.28, 0.34
martin@server:~>
 
Old 09-15-2010, 08:45 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

How do you make the conclusion that init is up longer then the whole system?

Todays date minus 559 days is:
Code:
date -d "559 days ago" "+%Y%m%d"
20090305
20090305 -> March 05 2009. Which tells me that both are the same (OK, did not look at minutes and seconds, but the only one that can check that is you.)

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
System uptime sfskseg32 Programming 1 12-06-2009 06:22 PM
'Uptime' system load averages miknight Linux - General 14 01-30-2008 03:28 PM
System Uptime mindjet Suse/Novell 7 05-15-2006 03:35 AM
How to get System UpTime using C program ? D M Mehta Programming 1 02-25-2004 02:47 AM
uptime system call ?? Agent007 Programming 4 01-10-2004 05:31 AM


All times are GMT -5. The time now is 06:43 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration