Is it possible to restart only the userspace? Like shutdown everything up to the kernel and then restart from PID 1?
I would like to snapshot my root btrfs filesystem and quickly boot on that snapsnot.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Remember what you're running (to be honest it doesn't actually tell you what you're really running, for that refer to systemd : how to get the running target
Switch to single-user mode:
systemctl isolate rescue.target
You may want to kill some remaining processes.
Switch back to whatever mode you had in the beginning (normally it's
systemctl isolate graphical.target
You may also use
init 1 and then
init 5 which are still supported.