Kexec/kexec-exec: Difference between revisions

From Alpine Linux
(Zcrayfish created the page Kexec/kexec-exec using a non-default content model "plain text": This will be a plain text page)
 
m (Moved from Kexec)
 
Line 1: Line 1:
 
#! /sbin/openrc-run
description="kexec for faster reboot"
depend() {
after killprocs savecache mount-ro
}
start() {
ebegin "kexec-exec: Using kexec for faster reboot"
kexec -e
ewend $? "kexec-exec No kernel loaded."
return 0
}

Latest revision as of 19:07, 2 January 2024

#! /sbin/openrc-run description="kexec for faster reboot" depend() { after killprocs savecache mount-ro } start() { ebegin "kexec-exec: Using kexec for faster reboot" kexec -e ewend $? "kexec-exec No kernel loaded." return 0 }