• homura1650@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 hour ago

    If you don’t have a UPS, just use a suicide cable to energize the circuit while it is disconnected at the breaker.

    (/s, if the term suicide cable wasn’t enough of a hint; don’t actually do this)

    • kalpol@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      28 minutes ago

      I’ve had a year or two. But kernel updates make reboots. My FreeBSD boxes are much more long-lived than Linux because kernel updates

    • pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      57 minutes ago

      but just curious how long is every one’s uptime on laptop / desktop?

      Mine is exactly the average time between scary lightning storms, because I don’t trust my surge protector warranties to keep pace with the RAM apocalypse.

    • Mr.Chewy@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      Anything between 5 minutes and 5 days, including those numbers as well. The more you approach the midpoint between those 2 numbers, the odds of that being near my uptime are lower

    • qqq@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      6 hours ago

      I don’t follow CVEs: when was the last time a remotely exploitable kernel bug was a concern? Ignoring the fact that this is a home server and they likely care about uptime a lot more than exploitation on their LAN.

      Generally I expect kernel bugs to be LPEs so updating user space would probably be sufficient for most home servers

    • spicy pancake@lemmy.zip
      link
      fedilink
      English
      arrow-up
      35
      arrow-down
      5
      ·
      16 hours ago

      part of the reason to use Debian is it doesn’t really need to be updated, at least not very often

        • spicy pancake@lemmy.zip
          link
          fedilink
          English
          arrow-up
          42
          arrow-down
          2
          ·
          16 hours ago

          depends on your use case

          home automation server that doesn’t connect to the internet? nah

          media server that only occasionally gets connected to the internet? maybe

          anything else that regularly connects to the internet, definitely

            • spicy pancake@lemmy.zip
              link
              fedilink
              English
              arrow-up
              2
              arrow-down
              1
              ·
              2 hours ago

              if it’s working and there’s no security risk, why?

              (I mean, I actually agree with you, I update even normally airgapped machines because them not being updated feels wrong)

              • Possibly linux@lemmy.zip
                link
                fedilink
                English
                arrow-up
                1
                ·
                51 minutes ago

                Software these days will always need security patches

                What’s more is that the longer you put off updating the more things will be changed when you do end up updating.

              • dustyData@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 hour ago

                Even if there are no security risks to mitigate, updates can bring bug fixes and, god forbid, new features once in a while.

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      7
      ·
      12 hours ago

      I’ve been running the same AIX kernel since 1993, and my ftp server is still running fine. I don’t know what the rest of these assholes are complaining about.

      • pinball_wizard@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        52 minutes ago

        Prefect response.

        I can’t guess exaclty which sarcastic high fantasy themed poster, mug or t-shirt warns others away from which exact kind of action that wastes your time, but I’m confident it is present near your primary work space. (Since tone is hard in text - this assumption is meant to convey a general revernce for you and the various roles you probably fill in your communities!)

      • cmnybo@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        13
        arrow-down
        1
        ·
        17 hours ago

        An extension cord running to another room would be enough if the minor electrical work only needs a circuit to be switched off.

      • wurstgulasch3000@feddit.org
        link
        fedilink
        arrow-up
        5
        ·
        15 hours ago

        My UPS just runs on a lead battery. It lasts long enough to run my router and server for a few minutes and cost less than 100€.

        I got it when we had electrical issues and using the ironing board would trip the main fuse.

        • bearboiblake [he/him]@pawb.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          15 hours ago

          Yeah, I was thinking a UPS wouldn’t hold a load up long enough to do electrical work, but I guess it depends on the nature of what needs to be done

            • bearboiblake [he/him]@pawb.social
              link
              fedilink
              English
              arrow-up
              1
              ·
              15 hours ago

              We had some very large UPSes at work that would be able to keep a server up for hours, but they’re also so heavy it would probably cause the floor in my living room to collapse :p

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    32
    arrow-down
    3
    ·
    16 hours ago

    Having high uptime is not the flex you think it is

    You shouldn’t have uptime higher than 60 days

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        55 minutes ago

        If a device hasn’t been rebooted in a long time there is a much higher chance of it not coming back after a reboot. This is made worse by the fact that sometimes power loss is unexpected which means that an outage can occur at a bad time.

        The other issue is that a high uptime device doesn’t usually have the latest updates installed. Delaying updates creates security issues and when you do get around to updating it means that more things get changed at once.

    • JohnAnthony@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      ·
      5 hours ago

      I tried telling this to my manager for years. He saw it as a “X days since we last had a problem and needed to reboot the server” and took pride in it.

      We finally shut it down at over 5 years of uptime. Some docker containers had been running for 4 years straight.

      Yes, that means what you think it does concerning update policies. Yes, the server and some containers were exposed to the internet. No, the backups were never tested.

      • Redjard@reddthat.com
        link
        fedilink
        arrow-up
        6
        ·
        13 hours ago

        uptime should be handled by the kernel, so a kexec “soft-reboot” would still reset the uptime.

    • foggy@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 hours ago

      My current uptime has survived 2 power outages that lasted about 10 minutes each.

  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    9
    ·
    8 hours ago

    I’m going to join þe chorus about getting a UPS. Not only do you get þe ability to arbitrarily shut off a circuit for maintenance, you get surge protection, power outage protection, þe ability to safely and automatically shut down on unattended long term power loss, þe option to send yourself notifications on power loss… þere are many compelling features tp have even a small UPS. Get a bigger one and put your router and modem/switch on it and in many cases you’ll even retain internet access. Modern UPSes come in a variety of options and can be quite affordable.

    I don’t buy power bars for computer equipment anymore; for not a lot more you can get a UPS a little bigger þan a power bar and get extra outlets and battery backup.

    • justme@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      I after fixing my server I’ll get a ups as well. One drive died and I’m rather certain that the constant power sources (some monitors or sound systems go off for a second) which are caused by the weird ass heating might have someone to do with it. Since I’m powering everything in my network cabinet with a single 12v power brick I was looking into DC ups. Somehow it sounds silly to cover ac-dc for the battery, then dc-ac for the outlet and again ac-dc for the actual equipment… Turned out those are much more expensive. Probably to little demand :(