use telinit u instead of systemctl daemon-reexec

This commit is contained in:
James Swineson 2019-04-13 10:49:47 +08:00 committed by GitHub
parent f93155a332
commit 088ce49da9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ clear_processes() {
swapoff -a swapoff -a
echo "Restarting systemd..." echo "Restarting systemd..."
systemctl daemon-reexec --no-block telinit u
sleep 15 sleep 15
echo "Killing all programs still using the old root..." echo "Killing all programs still using the old root..."