Results 1 to 5 of 5

Thread: want to retain your uptime record?

  1. #1
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default want to retain your uptime record?

    Package updates left you with too many processes using old files as shown by zypper ps that it's easier to reboot instead of restarting the processes, but you are nostalgic about your long uptime record? Here's how to preserve your uptime.

    Log out of the desktop. Go to a virtual console and become root, then:

    Code:
    telinit s
    This changes the runlevel to single user. It will prompt you for the root password to login, then:

    Code:
    telinit 5
    which will bring it back up to multiuser with GUI. Use
    Code:
    telinit 3
    if you run it in CLI mode, e.g. a server.

  2. #2
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: want to retain your uptime record?

    Is there a possibility to preserve uptime when the updates bring in a new kernel?
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: want to retain your uptime record?

    No, the uptime relates to the running kernel and of course if you replace it ... I suppose there might be a trick to preset the uptime of a new started kernel, but I think that's carrying vanity too far.

  4. #4

    Default Re: want to retain your uptime record?

    I thought that ksplice would allow you to do exactly that, maybe I misunderstood. In any case, if I have made a significant change, I'd rather reboot and check that I haven't done something that stops it from booting.

  5. #5
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: want to retain your uptime record?

    Yes, ksplice allows you to keep running the same kernel with live patches. But you would be doing that for the sake of continuous service and not the frivolity of seeing your uptime counter preserved.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •