reupload because i mixed up sigterm and sigkill like a dumb fuck

top 99 comments

sorted by: hot top controversial new old
[–] 124 points 5 months ago* (10 children)

A stop job is running for User Manager for UID 1000 (12s / 2 mins)

  • source
  • hideshow 10 child comments
  • [–] 61 points 5 months ago (6 children)

    ( 1min 59s / 2 mins )

    ...

    ( 2 mins / 3 mins )

    ???

  • source
  • parent
  • hideshow 6 child comments
  • [–] 45 points 5 months ago (4 children)
  • [–] 16 points 5 months ago* (3 children)

    In those cases there's an easy solution.

    Step 1: sigh

    Step 2: press the power button 5 or 10 seconds while contemplating why you decided to do a quick restart instead of keeping the session and do something actually productive

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 5 months ago (2 children)

    I recommend starting with SysRq+E before that, there's a chance it gets whatever the shutdown was waiting for. And if that fails... REISUB my beloved.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 5 months ago (1 child)

    RSEIUB. Raising skinny elephants is utterly boring.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 5 months ago

    I might be missing something, but the order I know and have always seen recommended is REISUB. Terminating processes might write data to disk, so it seems to me like you should sync after, not before. Though this is also generally unimportant with modern filesystems and storage media.

  • source
  • parent
  • [–] 16 points 5 months ago

    That's because it first send sigterm, then sigkill. Then it gives up and let the kernel handle it...

    Happens on my BTRFS disk's unmount. If the kernel is currently busy handling some heavy btrfs command (like a 4tb scrub), systemd cannot stop it with sigkill.

    So when it eventually gives up, you also need to wait for the kernel to finally stop the operation and actually disconnect the disk.

  • source
  • parent
  • [–] [S] 58 points 5 months ago* (2 children)

    also yes i know shutdown typically uses sigterm and waits nicely, but it doesn't take 45 seconds for no damn reason like windows

    also sigkill is funnier

  • source
  • hideshow 2 child comments
  • [–] 55 points 5 months ago (9 children)
  • [+] [S] -7 points 5 months ago (5 children)
  • [–] 11 points 5 months ago (2 children)

    I couldn’t find better screenshot, but I’ve definitely seen this happening due to zombie processes after just regular use, rather than just broken mount. I feel like it’s handled way better nowadays though.

  • source
  • parent
  • hideshow 2 child comments
  • load more comments (1 reply)
  • [–] 51 points 5 months ago (3 children)

    Definitely not a systemd based distro in the meme

  • source
  • hideshow 3 child comments
  • [–] 12 points 5 months ago (2 children)

    Maybe something I don't know, but I send kill commands through btop all the time on a systemd based machine.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 45 points 5 months ago (3 children)

    Reverse meme when it's time to install the updates.

    Windows in that case is "I MUST REBOOT IMMEDIATELY PREPARE TO LOSE ALL UNSAVED DATA IN 3. 2. 1..."

  • source
  • hideshow 3 child comments
  • [–] 25 points 5 months ago (1 child)

    When I switched to win 10, I actually gave them more money to get the pro version for access to the group policy editor so I could control updates and never have to deal with my PC telling me it's time to restart on its own. Because I was stupid.

    When it came time to switch to Win 11, I did the much more sensible thing and installed Fedora instead. I started with cinnamon and even though I ended up disliking it also, it was still way better than the windows experience.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 3 points 5 months ago

    Not quite. I will RESUME FROM THIS FUCKING "MODERN SLEEP" shit, even though you the user want to turn this shit right off, do it without any warning watsoever, close all your fucking windows and good luck if you have lost work or not.

  • source
  • parent
  • [–] 24 points 5 months ago (2 children)

    "YOU CAN'T SHUT DOWN YET, STEAM STILL RUNNING" -Win10, literally every time.

    The fuck?

  • source
  • hideshow 2 child comments
  • [–] 15 points 5 months ago (1 child)

    I've had it yell at me because it couldn't close some dialog window that explorer opened because I was trying to shut it down

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 5 months ago

    The number of times I've told my work laptop to shut down on Friday, and found it still running on Monday is too damn high. And it's usually because I had two instances of VSCode running, and when they got closed they both tried to run an update, and the setup processes interfered with each other. The resulting dialog window prevents shutdown.

    Every workday using Windows is just further validation for running Linux on my own hardware.

  • source
  • parent
  • [+] 22 points 5 months ago (4 children)
  • [–] 2 points 5 months ago (2 children)

    How do you configure this? I have often encountered minute-long restarts most of which was fixed by adding a service to kill the wine server on shutdown, but still it sometimes happens.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 21 points 5 months ago (7 children)

    Ironic. Because a bug on CachyOS KDE made the shut down button in the quick menu disappear. Nobody in their community could help me or explain why. Generally I would say support is rather spotty with CachyOS in general. Of course you can shut it down in many other ways but that was my preferred one. So I just lived with it and instead used ctrl+alt+delete for a while until the button magically returned one day.

  • source
  • hideshow 7 child comments
  • [–] 7 points 5 months ago (4 children)

    I'm kind of a linux noob, and i currently run catchyos and there are some things i don't really understand. Last time i used linux is like 10 years ago, and i read and experienced that a really big plus on linux compared to windows is that you don't need to restart when yoj install or update, but on catchy, you need to restart almost every update, which is almost every day it seems. Another thing that puzzles me is that every now and then, i restart for the update and wander off, and when i come back i don't use the pc anymore and want to shut it down, but in the log in screen there is no shut down button, just a restart button.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 5 months ago

    I use Arch personally, and as mentioned you should restart every update - but you can just not update everyday (updates don't even come at a scheduled time, it's just packages getting new versions whenever, so by the time you finish updating there could be another updated package for you)

    I think updating weekly and as necessary is a good schedule, though if you don't update frequently and try to install something new, the version pacman will try to install will be based on your local repository information, matched to your other packages, and might no longer be available in mirrors. And you shouldn't install an updated version of just one package, because if it pulls in the wrong updated dependencies you could break your install.

  • source
  • parent
  • [–] 0 points 5 months ago

    In general, it's true that Linux doesn't need to restart for most updates. However, if you get a power cut right in the middle of an update, that could leave your OS in a really bad state. Therefore, for safety reasons, some distros (apparently including CachyOS) do updates in a 'safe mode' on boot, so that if there's a power cut it just rolls back cleanly.

    In short, how exactly distros approach updates differ slightly. A tradeoff between safety and convenience.

  • source
  • parent
  • load more comments (1 reply)
  • [–] 1 point 5 months ago

    If you use Emby Desktop, when it's full screen it interrupts all shutdown commands. Only GUI option is 'cancel', running shutdown remotely fails.. Just need to exit full screen but who the hell decided an Electron app was more important than my choices

  • source
  • parent
  • [–] 21 points 5 months ago (6 children)

    Don't be a pussy and sigkill process number 1.

  • source
  • hideshow 6 child comments
  • [–] 18 points 5 months ago (1 child)

    Had the pleasure of installing some HPE proprietary crap on RHEL the other day.

    After the cli installer ran it printed: rebooting now.

    It then killed PID 1 to force the reboot ...

    We were flabbergasted. Why would the first and only method of asking the system to reboot be to shoot the system in the head?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 5 months ago

    I was installing something decades ago that set the default runlevel to 6 and inserted itself as a runlevel 6 service. It would reboot until it had finished the changes it wanted to make and then set the runlevel back. Weirdest trash software. The service stayed to "apply updates on reboot"

    I'm glad I don't have to work there anymore.

  • source
  • parent
  • [–] 4 points 5 months ago (2 children)

    Too much typing. Real men just press Alt+SysRq+L.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 5 months ago

    Just bind update/shutdown to a key you don't press often, like keypad insert.

    yay --noconfirm ; sudo shutdown now
    

    Any problems with update, computer is put straight out of its misery. Bang.

  • source
  • parent
  • [–] 2 points 5 months ago

    Just hold on to your butt and cut the main power.

    But then don't forget to switch back to main power before the auxiliary power runs out of fuel or things will get really bad.

    Unless it's the movie and they cut out the whole auxiliary power and just set it up such that all power goes out and no one thought of being at the power station to get the main generator back up and running asap before cutting the park's power.

  • source
  • parent
  • [–] 15 points 5 months ago (2 children)

    I had to update a Windows 11 work laptop after not touching it for nearly a year. I click 'shut down' from the start menu and nothing happens. What? Try it again. Nothing again.

    I have to hold down the power button before the screen shows a "slide to shut down" screen now. How did Microslop fuck up the 'shut down' so badly.

  • source
  • hideshow 2 child comments
  • [–] 14 points 5 months ago (4 children)

    The first time I shutdown a Linux computer, I thought I broke something it happened so fast.

  • source
  • hideshow 4 child comments
  • [–] 11 points 5 months ago (3 children)

    Been doing Linux for decades. sudo reboot is still very jarring.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 5 months ago

    Same. I still feel like I should be parking the heads on my 10mb hard drive. Honestly at this point, I'm too embarased to ask if there is a proper way to send my servers for a reboot, and I cross my fingers I can log back in.

  • source
  • parent
  • [–] 12 points 5 months ago

    It's tragic the level of immediate relief I feel every time I shutdown on Linux after years on Windows.

  • source
  • [–] 10 points 5 months ago

    Xkill is my favorite. I prefer aiming the gun and pulling the trigger myself

  • source
  • [–] 8 points 5 months ago (2 children)
    [HKEY_CURRENT_USER\Control Panel\Desktop]
    "AutoEndTasks"="1"
    
  • source
  • hideshow 2 child comments
  • [–] 8 points 5 months ago* (last edited 5 months ago) (4 children)

    Nah man. "kill" doesn't shut the system down quickly. This is the "instant death" way - the kernel reset gun - no shutdown scripts, no disk sync, just reset to BIOS boot sequence, instantly:

    As root:

    echo 1 > /proc/sys/kernel/sysrq

    echo b > /proc/sysrq-trigger

    If you change out the "b" in the second command for "o" it will just halt the kernel instead of rebooting. Still switched on, but the system is doing absolutely nothing.

    I used to use this trick all the time to test high availability server clusters.

  • source
  • hideshow 4 child comments
  • [–] 3 points 5 months ago (3 children)

    Pardon my ignorance, how does halting the kernel help? We're you seeing if other instances jump in for the halted one?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 5 months ago (2 children)

    You mean in the context of high availability?

    tl;dr: It's to test if the cluster fail-over configuration is working properly.

    So this was before things like Kubernetes or Terraform were a thing, so had to be done by the operating system itself. The simplest HA cluster is made of two nodes, one in "active node", the other "passive". The active node does all the work, and the passive node just keeps its data synchronised with the active node. I used to use DRBD for this, which is a system for copying writes to the active node over a network link to the passive node. That only gives you a "second, up-to-date copy" which is not that useful on its own - you also need a way to automatically switch over to using the passive node if the active one "dies", and for that I used to use "heartbeat", which simply passes packets back and forth between the two cluster members - ping-pong style - and if the passive node notices that the active node hasn't sent its scheduled packet for, say, 10 seconds, it cuts it off the current active node (kills it), and promotes itself to the active role, thus preserving the service. Killing the "other node" is necessary to stop data corruption or user requests going to a node that can't actually service them, and is called STONITH - Shoot The Other Node In The Head. STONITH can involve an electronically controlled switch, which literally cuts off power to the "other" node, or can isolate it on the network, by shutting down its network ports on the switch, or in a VM setup, sending a notification to the hypervisor to kill the VM.

    The reason you need to be able to kill the kernel on the active node, is that when you manually shut down the active node, it automatically informs the passive node that it's going down, known as an "orderly fail-over", and you're not actually testing if the heartbeat fail-over works, you're just testing an orderly fail-over. Killing the active node's kernel tests that the passive node is properly configured to take over during a catastrophic failure of the active node. You can watch the heartbeat status go from "up" to "down", and then see the passive node decide to take over, promote itself and bring up its services, and begin processing requests.

    To make sure it's all working, you need to test orderly fail-overs first, from both nodes, then test disorderly fail-overs both ways, by using the kernel gun on the active node.

    Things moved on from Heartbeat-based HA clusters to multimode clusters managed by Corosync and other software, enabling other strategies to be employed. This was eventually supplanted by "orchestration" systems like Kubernetes, and proprietary Virtual Cloud systems that move this functionality to the platform rather than the operating system.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 5 months ago

    Three whole seconds? Ain't nobody got time for that shit

  • source
  • [–] 6 points 5 months ago (1 child)

    I had a systemd bug delay shutdown for 2 mins every time for a very long time on Debian. Never managed to fix it, Fedora did not have the same issue fortunately.

  • source
  • hideshow 1 child comment
  • [–] 1 point 5 months ago

    I fought one of those on NixOS for 2 months but on boot two whole minutes.

    I had been poking at it for ages in my spare time, because i can only stand so many reboot tests, and once you were up, it was fine.

    On day work issued us Claude code licenses. Maximum effort, maximum model, claude, my startup -> login it taking forever please go find out what's going on.

    3 reboots later and some very deep seeded issue with a version conflict in PAM that was pissing wayland/kde off in a way that there wasn't really any error waiting for a timeout.

  • source
  • parent
  • [–] 6 points 5 months ago (2 children)

    Does that guy have frontbutt?

  • source
  • hideshow 2 child comments
  • [–] 10 points 5 months ago (2 children)

    Reboot

    Windows: save all your woooork. What apps you had open? How would I know?

    Linux: it's all saved in ram, don't worry. It'll be like you never rebooted

  • source
  • hideshow 2 child comments
  • [–] 5 points 5 months ago

    Gonna make Lemmy pissed off, but installed on my machine Nobara, Cachy and Mint at some point. All of them had comparable if not worse boot and shutdown times to Windows 10. xD ( And worse performance in games but that's due to having old Nvidia GPU xD )

  • source
  • [–] 4 points 5 months ago (1 child)
  • [–] 9 points 5 months ago (5 children)

    This but deleting a folder:

    • Are you sure you want to delete this
    • Delete too large to fit in garbage bin, so are you really sure
    • Couldn't delete stuff (for no clear reason)
    • Even as admin file locks were hard blocking without any easy way to unblock

    Meanwhile on Linux with sudo rm -rf, it's just gone as demanded.

  • source
  • hideshow 5 child comments
  • [–] 4 points 5 months ago* (3 children)

    Partially true. The difference is that in Linux, when you delete a file, you're just removing the directory entry (potentially just one of many entries that point to the same data). The filesystem doesn't actually remove the data and reclaim space until all open handles are closed and no remaining directory entries point to the data.

    Any running processes that have the file open are able to continue to read and write that data via the handle despite the directory entry being removed, until the handle is closed.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 5 months ago (2 children)

    I think a file delete just removing an adress and not the actual data is common to all OSes. That's why to safely erase data from a disk it is recommended to fully overwrite the disk with random data, potentially multiple times.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 5 months ago

    If you delete a still opened file on Linux then the file will disappear for all processes which didn't already open it, all programs that did already open it can still read and write to it and the file on disk will never be overwritten (as in, used for other files) as long as there's still a process with the file open.

    Simplifying how it works: The file you see is a link to the actual file(inode), when a program opens a file using this link they get a copy of the link. As long as one link/copy of it still exist the file won't be deleted. When a program closes all its links get cleaned up so on shutdown all files which only have processes referring to them get marked as deleted.

  • source
  • parent
  • [–] 2 points 5 months ago

    that's a different thing. if you delete a file that is still opened by a process, the space will not get freed up until that process also closed the file. until that point the filesystem still keeps track of the file, it is just not present in any directories anymore.

  • source
  • parent
  • load more comments (1 reply)
    [–] 3 points 5 months ago

    "Kill dash 9! No more CPU time!" β€” Monzy

    https://www.youtube.com/watch?v=Fow7iUaKrq4

  • source
  • [–] 4 points 5 months ago

    It's not a request, it's a warning. The machine will be without power soon, and it's up to the machine whether it wants to prepare for that or not

  • source
  • [–] 2 points 5 months ago

    That’s not sleep

  • source
  • [–] 2 points 5 months ago

    this will be done in three seconds

    Hah! Fractions of that

  • source
  • [–] 2 points 5 months ago (1 child)

    Meanwile MorphOS booting up and shutting down: https://www.youtube.com/watch?v=kIgybl6LfqU
    The jingle at the start is the Mac's own. The shutdown is so fast, you'll miss it if you blink. No services, no demons or whatever.
    (That was 2013. I'd argue it starts up even faster now.)

  • source
  • hideshow 1 child comment
  • [–] 2 points 5 months ago (3 children)

    taskkill /f /im "application.exe"

  • source
  • hideshow 3 child comments
  • [–] 2 points 5 months ago

    <_< shutdown -f -t 0 -s

  • source
  • load more comments
    view more: next β€Ί