LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 07: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, 07:45 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
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:17 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
Open Source Consulting | Domain Registration