A stop job is running
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudoin Windows. - No porn, no politics, no trolling or ragebaiting.
- Don't come looking for advice, this is not the right community.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
- This is primarily an English-speaking community. π¬π§π¦πΊπΊπΈ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. Β
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
At least it tells you how long it'll take before it decides to SIGKILL whatever is holding the shutdown sequence.
Well you say that, but I've seen the countdown go past and then reset to a higher number often.
I entrust you with this horror, go figure out what to blame.
shutdown-analyze.sh
#! /usr/bin/env bash
shutdown_start=$(journalctl -b -1 -u systemd-logind --grep="System is (powering down|rebooting)" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP)
shutdown_start=$((shutdown_start / 1000000))
units=$(journalctl -b -1 --since=@$shutdown_start --output=cat --no-pager --output-fields=UNIT JOB_TYPE=stop CODE_FUNC=job_emit_start_message)
for u in $units; do
stopping_start=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_start_message _SYSTEMD_UNIT=init.scope)
stopping_end=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_done_message _SYSTEMD_UNIT=init.scope)
duration_human=$(systemd-analyze timespan $((stopping_end - stopping_start))us | tail -1 | sed 's/.*: //')
printf "%s\t%10s %s\n" $((stopping_end - stopping_start)) "$duration_human" "$u"
done | sort -rn | cut -f 2
I think that depends on the setting, I had situations where one of my docker containers took ages to shutdown and it would just say 00/02 00s but when it reached that limit, it would just go up.
Alt-SysRq-i, u, o
I don't have time for this shit.
(X time / 1:30) but the second time will be extended indefinitely for some fucking reason.
Reminds me of one of the truest comics I ever read.

It is weird isn't it.
Why do they make it so bad?
I imagine half of linux users could make better automated update rules in their cron.
So many better ways.
So why are they making it intentionally bad?
... Sabotage from Microsoft employees who hate Microsoft?
... Part of a larger Embrace Extent Extinguish tactic, where they've already embraced the Linux Foundation etc enough, they're ready to extinguish Windows, already having sufficient monopolistic total-control hooks in Linux???
What are they up to? There has to be a reason it's so bad. There has to be a reason they go out of their way to make it so bad.
It surely can't just be the effects of The Corporation, the hierarchies and compartmentalisations and bureaucracy of the structure where they don't understand (or even perhaps do understand [and maybe have seen Kevlin Henney's excellent talk on clean code vs enterprise programming] but) can't do anything about it, can it?
What are they building in there? We don't get to see, we don't get to know, just trust them, they know best when and how, and so you are not allowed to change it.
We are not doing that any more.
[**ββββ] A stop job is running for Session c1 of User gdm (49s / 1min 30s)
`[**ββββ] A stop job is running for Session c1 of User gdm (4min 19s / 1min 30s)`

Powers on
Immediately starts shut down
Refuses to close because the following programs are still running
The list is empty
It's even worse, when I tell my work Windows 11 computer to shut down and I have to choose update and shutdown because it decided to do updates, sometimes it reboots a few times but then it doesn't turn off afterwards.
I'm never going to install Windows 11 on any of my devices, it's so bad.
I bought a new mini PC the other day that shipped with windows 11. Before installing Linux I thought "I'll just boot into windows to make sure the hardware is all correct".
I got as far as the windows welcome screen and thought "it's actually just going to be faster and easier to install Debian instead of going through all this windows bullshit"
I got a new Mini a month ago. Before I even powered it up, I stabbed a USB stick into it, hit escape on boot, and killed that bitch with Kinonite.
There are two things a person needs to do when starting up a fresh new computer: First, you must bathe in the purifying waters of Lake Minnetonka, and never, ever let Windows have even a single chance to live.
Or my old windows 10 machine would wake itself up in the middle of the night to run updates that the group policy wouldn't even allow it to download without my permission and then just sit there. If I hadn't fallen asleep yet, I'd notice the monitor light up the next room and get up swearing at Microsoft until I tracked down where the wakeup timer was set and disabled it. Only to find it re-enabled after some updates.
Fuck Microsoft.
I have a solution for this inside on my work computer. I put it on a Shelly plug. I tell homeassistant to power that on before my shift starts. When I shut down the computer at the end of my shift, the plug sees the drop in current draw and powers off that outlet.
The windows pc doesnβt even get power unless I want it to. It can starve.
It's fun when your laptop decides to do this kind of nonsense from inside your laptop bag, smothering itself in its own heat.
Makes me wonder how many laptops seemed to randomly get bricked because it tried to update but then ran out of battery in the middle of it but the user just sees that their laptop had no battery left and then won't boot properly after that, never realizing it decided to update itself.
it's now safe to turn off your computer
It was never safe to turn it on in the first place
I've never used systemd to shut down
Sudo shutdown -h now works on the Mac
Are you guys really using a command to shut down a computer?
Because you can do the same with Windows, but nobody uses it because it is just not convenient to use commands for that.
shutdown /s
"please shut down (this is sarcasm)"
Yeah, you can even throw a /f in there to force close all apps so it will kill everything and go nighty night. I used to use it with /t command if I wanted to download something while I was out but not have the PC run all day.
That's not the best way to turn your PC off but hell half the time I just murder mine by holding down the power button anyways. As long as you're not being crazy shutting her down in the middle of some data operations you'll be fine.
I used it when I was watching movies to fall asleep to but did not want to use the battery. You can specify a time with /t before the shutdown occurs.
You can just type "shutdown now" and it does.
Just poweroff is fine. Why lose extra 2.5 seconds typing two words when one word will suffice?
systemctl invariably hangs on waitimg for some job to finish. systemd-shutdown-inhibitor is hideous.
poweroff -ff
Five seconds? What's hogging that system? Mine is about two, at most, from the WM shutdown selection.
Everyone arguing about the amount of keypresses to type a shutdown command and time it takes to shutdown... I just power it off at the wall. One button press, shutdown is near instantaneous
"shutdown" is a noun. I was on vacation because the company was in shutdown.
"shut down" is the compound verb you wanted.
Grammar checking a wojack meme?
Username checks out.
Username checks out.
must... not... bite...
This boils down to a Linux using a file system which allows files to be deleted or replaced in the inode table while something has the old file open. So it's easier (although not simple) to replace packages while other stuff is running. Whereas Windows has to shut everything else down so nothing has the file open to replace it and also fix stragglers during the next reboot.
its more to do with the fact that until recently linux distros did not have a desktop pc centered idea on how to do updates. but distros started to support offline updates, so you can install updates in a safer way, while the system is not running.
a major difference is that linux offline updates allows you to just shut down, without taking time with updates.
script on desktop; shutdown -h now, or hit button
