Linux command
systemctl-soft-reboot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Soft reboot
systemctl soft-reboot
Force
systemctl soft-reboot -f
Schedule
systemctl soft-reboot --when "[timestamp]"
Cancel
systemctl soft-reboot --when cancel
说明
systemctl soft-reboot shuts down and restarts userspace while keeping the kernel running. This is faster than a full reboot as it skips BIOS/firmware initialization and kernel boot. The kernel continues running; only systemd and all user services are restarted. This is useful for quickly testing service configurations or applying updates that don't require a kernel change.
参数
- -f, --force
- Force reboot even if inhibitors are present
- --when _TIMESTAMP_
- Schedule reboot at specified time or cancel
FAQ
What is the systemctl-soft-reboot command used for?
systemctl soft-reboot shuts down and restarts userspace while keeping the kernel running. This is faster than a full reboot as it skips BIOS/firmware initialization and kernel boot. The kernel continues running; only systemd and all user services are restarted. This is useful for quickly testing service configurations or applying updates that don't require a kernel change.
How do I run a basic systemctl-soft-reboot example?
Run `systemctl soft-reboot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --force do in systemctl-soft-reboot?
Force reboot even if inhibitors are present