Systemd 254 released and now has a new soft-reboot option:

    * A new "soft-reboot" mechanism has been added to the service manager.
      A "soft reboot" is similar to a regular reboot, except that it
      affects userspace only: the service manager shuts down any running
      services and other units, then optionally switches into a new root
      file system (mounted to /run/nextroot/), and then passes control to a
      systemd instance in the new file system which then starts the system
      up again. The kernel is not rebooted and neither is the hardware,
      firmware or boot loader. This provides a fast, lightweight mechanism
      to quickly reset or update userspace, without the latency that a full
      system reset involves. Moreover, open file descriptors may be passed
      across the soft reboot into the new system where they will be passed
      back to the originating services. This allows pinning resources
      across the reboot, thus minimizing grey-out time further. This new
      reboot mechanism is accessible via the new "systemctl soft-reboot"
      command.>
  • spez@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    3
    ·
    11 months ago

    So is this like that windows ‘fast boot’ or whatever it’s called thing?

    • bamboo
      link
      fedilink
      arrow-up
      38
      arrow-down
      1
      ·
      11 months ago

      It is nothing like that. Windows fast boot is just fancy resume from hibernation.

      • aksdb@feddit.de
        link
        fedilink
        English
        arrow-up
        11
        ·
        11 months ago

        It’s a mix. It hibernates what would be the result of a systemd soft-reboot, before user space starts up again.