View previous topic :: View next topic |
Author |
Message |
nandelbosc Guru
Joined: 29 Sep 2004 Posts: 350 Location: olot
|
Posted: Mon Sep 18, 2006 12:36 am Post subject: Preserve uptime? |
|
|
Possibly it's a stupid question but...
is possible preserve uptime?
I have a server with 300 days of uptime, I need to reboot it now to build a new kernel. |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Mon Sep 18, 2006 4:09 am Post subject: |
|
|
Sorry but, by definition, uptime is how long the system has been up without a reboot.... _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Mon Sep 18, 2006 4:26 am Post subject: |
|
|
Ya, no cheating!
This raises a curious question: if you use kexec to change running kernels, does this reset the uptime? (basically is uptime for the machine, or the running kernel) |
|
Back to top |
|
|
NoControl n00b
Joined: 06 Apr 2004 Posts: 74
|
Posted: Mon Sep 18, 2006 4:30 am Post subject: |
|
|
Headrush wrote: | Ya, no cheating!
This raises a curious question: if you use kexec to change running kernels, does this reset the uptime? (basically is uptime for the machine, or the running kernel) |
No certainty from me, but I think uptime is a counter incremented each second by the kernel, and so when you start a new kernel, the uptime is reset, too. |
|
Back to top |
|
|
nandelbosc Guru
Joined: 29 Sep 2004 Posts: 350 Location: olot
|
Posted: Tue Sep 19, 2006 12:55 am Post subject: |
|
|
Quote: | Sorry but, by definition, uptime is how long the system has been up without a reboot.... |
True, but I hear it's possible hack.
For me it's only a pleasure of don't view breaked this personal record |
|
Back to top |
|
|
oxEz Tux's lil' helper
Joined: 18 May 2004 Posts: 115
|
Posted: Wed Sep 20, 2006 4:33 am Post subject: |
|
|
This would be an ego boost, isn't it? |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9523 Location: beyond the rim
|
Posted: Wed Sep 20, 2006 10:13 am Post subject: |
|
|
Well, you can change the start value by hacking the kernel. |
|
Back to top |
|
|
batfoot Apprentice
Joined: 26 Jul 2004 Posts: 197
|
Posted: Wed Sep 20, 2006 10:45 am Post subject: |
|
|
Nice, I tried to do this a while ago but couldn't figure it out.
Funny though, I'm glad I'm not the only one trying to defeat the purpose of uptime |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Wed Sep 20, 2006 8:05 pm Post subject: |
|
|
See sig.
While it's not faked, it's not from my system either (rather from one of the sun boxes at $ORKPLACE). _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Wed Sep 20, 2006 8:18 pm Post subject: |
|
|
You could try out app-misc/uptimed, it doesn't preserve your uptime but it does keep track of your highest uptimes. _________________ Search | Read | Answer | Report | Strip |
|
Back to top |
|
|
nandelbosc Guru
Joined: 29 Sep 2004 Posts: 350 Location: olot
|
Posted: Thu Sep 21, 2006 1:40 am Post subject: |
|
|
Quote: | You could try out app-misc/uptimed, it doesn't preserve your uptime but it does keep track of your highest uptimes. |
mmm... I like this application. I try it soon. Thank's! |
|
Back to top |
|
|
|