mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00:00
13ffc60749
This adds a new mechanism for rebooting, a form of "userspace reboot" hereby dubbed "soft-reboot". It will stop all services as in a usual shutdown, possibly transition into a new root fs and then issue a fresh initial transaction. The kernel is not replaced. File descriptors can be passed over, thus opening the door for leaving certain resources around between such reboots. Usecase: this is an extremely quick way to reset userspace fully when updating image based systems, without going through a full hardware/firmware/boot loader/kernel/initrd cycle. It minimizes "grayout time" for OS updates. (In particular when combined with kernel live patching)
18 lines
586 B
SYSTEMD
18 lines
586 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Reboot System Userspace
|
|
Documentation=man:systemd.special(7)
|
|
DefaultDependencies=no
|
|
Requires=systemd-soft-reboot.service
|
|
After=systemd-soft-reboot.service
|
|
AllowIsolate=yes
|
|
JobTimeoutSec=30min
|
|
JobTimeoutAction=soft-reboot-force
|