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

  • Evotech@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    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

    • Sanguine@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      20 days ago

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

      • Ooops@feddit.org
        link
        fedilink
        arrow-up
        0
        ·
        20 days ago

        The point here is that SystemD’s natural behavior is to send SIGTERM then wait an eternity.

        Those “service XY is shutting down (5sec/2min)” messages you sometimes get on shutdown are coming from SystemD not waiting for 3 seconds like the meme suggests, but waiting for minutes before giving up and switching over to SIGKILL instead.

          • Ooops@feddit.org
            link
            fedilink
            arrow-up
            0
            ·
            8 days ago

            There is the option to explicitly set DefaultTimeoutStartSec and DefaultTimeoutStopSec per systemd service.

            If you don’t specify it in a service file, the default values from /etc/systemd/system.conf (both set to 90s) will be used, so you can change those values to 30s, too, to affect all services (that don’t have their limit set explicitly) globally.

  • starman2112@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    19 days 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

  • Fiery@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    19 days ago

    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.

    • smeenz@lemmy.nz
      link
      fedilink
      arrow-up
      0
      ·
      19 days ago

      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.

      • oce 🐆@jlai.lu
        link
        fedilink
        arrow-up
        0
        ·
        19 days ago

        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.

        • WhyJiffie@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          19 days 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.

        • InnerScientist@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          19 days 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.

  • jason@discuss.online
    link
    fedilink
    English
    arrow-up
    0
    ·
    19 days ago

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

      • jason@discuss.online
        link
        fedilink
        English
        arrow-up
        0
        ·
        19 days ago

        I think that reaction comes from messing with computers too much. When you fuck up in a computer, that sudden shutdown is what you get. Gives me flashbacks.

      • highball@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        19 days 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.

  • Get_Off_My_WLAN@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    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.

    • chiliedogg@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      20 days ago

      I love how the design is so bad now we’re missing the days when shutting down the computer required the “Start” button.

    • hexagonwin@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      19 days ago

      the alt f4 shutdown window present since win95/nt4 tends to work better than the latest slop menu they made

  • Wispy2891@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    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…”

    • Trail@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      19 days 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.

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      20 days ago

      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.

  • eighty@aussie.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    20 days ago

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