Most APC/Tripplite battery backups can hold a server “up” for a solid 1/2 hour easily while the breaker goes down. They can even be had cheap second hand if you’re willing to replace the cells!
nudgenudgewinkwinksonomore“Shutdown off”
Startup’nt
It’s an alias for “sudo shutdown now”.
sudo poweroff
I’m sorry for your loss. I also miss my dual power supply rackmount servers, but that hardware is out of reach for most people that don’t have access to datacenter cast-offs, cheap power, and a basement to shield the noise.
🌟🎀 uptime check ✨🌈💖
22:09:13 up 9 days, 12:29, 2 users, load average: 0.03, 0.05, 0.11EDIT: wait why does it say 2 users though 😳
That’s for your daily driver desktop right? Right??
Regular files check by your FBI agent.
EDIT: wait why does it say 2 users though
Sorry about that, won’t happen again
To make sure all security patches are applied I assume 🧐
It’s probably your mom.
11:13:30 up 1 day, 17:21, 1 user, load average: 0.25, 0.16, 0.11My e-peen isn’t as big as yours D:
Linus Torvalds is just making sure you’re Linuxing correctly
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)
Ironically, this was one of the primary reasons I have a UPS on everything. The uptime must grow.
Do y’all not reboot after kernel/firmware updates?
part of the reason to use Debian is it doesn’t really need to be updated, at least not very often
Can I introduce you to OpenBSD where we measure uptime in years?
It needs to be updated at least several times a year…
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
home automation server that doesn’t connect to the internet?
Well if uses wireless connectivity with either range broader than your place or is connected to a device that is itself online it can still be a risk. Sure it’s very VERY specific but scanning techniques also improve.
You should install updates regardless
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)
Even if there are no security risks to mitigate, updates can bring bug fixes and, god forbid, new features once in a while.
New features on Debian isn’t something that would make it into the repository. Bug fixes might but only if security relevant.
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.
Hmm, not my proudest moment.
16:09:15 up 1031 daysPrivate server, though.
up… date? what does that mean?
Almost 44 days last year before I needed to reboot for an update:

Wait, you guys reboot after an update?
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
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.
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!)
Say what now?
Rolling distros don’t need to
You absolutely do need to reboot
Laughs in kexec
It is way easier to just reboot
Ah, this brings back memories of flashing Android with various kernels and ROMs.
They absolutely do. There’s nothing special about them vs normal distros. Hell rolling ones probably get new kernels more often and you can only live patch so much. Some updates just hard need a reboot to take effect.
Just because you updated packages , doesnt mean those new ones are in use. Not sure what apt has, but with zypper you do a zypper ps -s and it shows you what installed packages are waiting on a reboot or service restart before they are in play… Otherwise kernel is just accessing old package libraries.
Are you sure? I’ve used Fedora Workstation and Fedora Server, I had to reboot. And Cannonical charges money for this feature in Ubuntu.
shutdown off
In English, that’s “shut down”.
deleted by creator
I use one of these lithium power stations as a UPS for my servers. They are all low wattage so they’ll run on backup for a few hours.
https://itechworld.com.au/products/ps800-portable-lithium-power-station-800w-40ah
i know the OP was about server, but just curious how long is every one’s uptime on laptop / desktop?
I turn my desktop and laptop of when not in use.
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
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.
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
“Shutdown off”
“Openup on’t”
All your base distribution are belong to
Hahahahaha
The UPS will keep it running long enough to switch to another power source.
I’m guessing OP probably doesn’t have a petrol/diesel generator handy :p
An extension cord running to another room would be enough if the minor electrical work only needs a circuit to be switched off.
That assumes your breakers are labelled well. I turn off like a quarter of the panel just guessing to avoid extra trips.
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.
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
If one is not enough just daisy chain two or three of them.
(Don’t do this)
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
Having high uptime is not the flex you think it is
You shouldn’t have uptime higher than 60 days
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.
Yeah these days a high uptime is a mark of shame, not a badge of honour.
Why, by the way?
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.
The reverse is that if you really know your stuff you can get away with fewer restarts, or even none. But you pretty much have to know every component and update you run while in that untested state.
This is similar to bugs that go away on a restart. If you don’t know why, then you haven’t really fixed it, just rolled the dice again hoping it won’t reoccur.As for updates, on regular systems you can do update everything but the kernel. You do have to restart affected services afterwards (often done automatically).
Even on atomic systems you can switcheroo the subvolume underneath a running system.
Unfortunately the kernel is quite major, so that is a valid reason to see the need to update. Definitely not as pressing as say nginx, sshd, or sudo though. Kernel bugs bubbling up to an exposed attack surface is still quite unusual.
Maybe they’re kexec-ing.
uptime should be handled by the kernel, so a kexec “soft-reboot” would still reset the uptime.
Modular custom single-program kernel running in a VM live migrated across a cluster?
No security revisions over multiple months?
How minor? You can do basic stuff on hot circuits if you are careful. Put on some rubber gloves under your work gloves and you’ll be fine.
Sorry some cowards downvoted you. On the other end of the spectrum I figure out which wires are hot by touching them, it only hurts for a second and not particularly badly
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.
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 :(
Yeah, I never þought about þat. Sooner or later everyþing will be USBC powered, including desktops. 240W should be enough for anyone, right?
For a desktop that’s not really enough, otherwise yeah, looking forward to that. Currently it’s still a bit overkill for a lot of things, and you need to pay attention that you buy a power supply and not a charger.












