Linux gives processes a chance to gracefully close. However, it also will absolutely NOT allow a process to hang up the shutdown or restart procedure after a point. If you’re using systemd (which there is a good chance you are), it’ll count down. If the process hasn’t stopped in the time allotted, it gets Old Yellered.
When I use systemctl shutdown it happens instantly
If a process closes immediately from the shutdown command because it isn’t doing anything, sure.
Question, what’s the default wait time?
The default in systemd, unless your distribution has modified it either globally, or for a specific service, is 90 seconds
Depends on the process. Can be 30 seconds. Can be 5 minutes.
REISUB. I own you machine, and you will do as I say. Reboot.
sudo reboot, that way the gui gets to die in a fire, too!
Windows: Has a complex and graceful shutdown process to make sure programs never close if there’s a problem with them and your computer just stalls on shutdown until you hold down the power button and completely void out the purpose of the graceful shutdown.
Ever tell a pc to shut down and come after work and it’s still waiting for click a box.
Ever? Too many times. When I think I’ve told Windows Update “yes, do all the shit, yes it’s fine, yes I’m sure, yes you can do it, yes I really want you to do it, yes I’m sure I really want you to, yes I’m sure I’m sure, yes for the umpteenth fucking time” and switched off my monitor to go home for the weekend, the number of times I’ve come in on a Monday morning just to find I have to click “yes” yet again then have to sit there watching it grind out its updates.
I just wish they’d add a checkbox, off by default, that says “yes you can do it all, just stop asking stupid fucking questions” that I can click and go home. But for some reason Microwank insist I have to sit there watching that fucking update percentage creep up then endlessly sit at “100% all is done, please wait” for no reason whatsoever.
Oh yeah and there always seem to be way more reboots needed when BitLocker is active. I’m sure 1 reboot is the norm with occasional 2’s. But with BL it’s usually 5-6 reboots.
I used to work at a place where MS would raise tickets with us and I always wanted to give them the WU treatment. But professionalism always got in the way of “This ticket is 100% complete, you must close and reopen it to continue”.
Closing correctly means the program stops NOW
Kill commands make me look like a CS:Go Civilian
one of my favourite things when i switched to linux first was using the meta+Q hotkey to shutdown a program (this was with PopOS i think). with windows there is alt+F4 but some programs only use shift+alt+F4 which makes it a lot more confusing. on top of all that if youre using a laptop then its another keypress for the Fn key in some cases
kill commands make one feel like a Caesar
Kill ‘em all, let God sort ‘em out 🤣
Lol yes. Killall makes one feel like a god.
et tu, Sudo?
You literally kill/xkill/killall the program.
In As400, you type PWRDWNSYS *IMMED.
Then you pray it comes back up in a timely manner.
Laughs in Sierra
elaborate please
old sierra DOS games, uh, they fucked up the code when exiting so they’d just crash. so they changed the error code to say “thanks for playing Kings Quest” or something similiar
If your code can’t handle a sig9 then your code is weak
sig 9 or sig 9mm - that’s the question here
kill $SIGSAUER
Linux is actually great if you need to implement graceful shutdown with signals – I love it all around :)))
Unass my ram.
I’ve never seen anything graceful in windows
Windows: I refuse to shut down because of a, b , c
Me: But I already clos. . .
Windows: No you didnt’t, stop lying!
Me : Well, I pressed the X and the window dissappeared.
Windows: Lol, noob. Did you never even heard of a task managers?
windows: “Can’t shut down because of the ‘Cant shut down’ notice”
me: “but…”
“Mmm, that didn’t work, try again later I guess? Just stop bothering me with your petty needs and get back to generating monetizable data that I can harvest.”
deleted by creator
“this application is preventing you from shutting down. Go back and save your work: shut down, cancel”
Clicks cancel
Windows: shutting down!
deleted by creator
deleted by creator