Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I'm looking for a kernel config option here, not something from userspace. Specifically, if for some reason, it can't mount the root filesystem (or for some other reason, userspace never comes up), I need it to reboot. Commented Jan 20, 2012 at 16:36
  • @ShawnJ.Goff If you're also concerned about userspace not coming up, then you're asking the wrong question (you want to reboot even if the kernel doesn't panic). And the answer is a form of watchdog by definition; you need to activate the watchdog subsystem (triggering a reboot if /dev/watchdog hasn't been touched in a while). See Documentation/watchdog/watchdog-api.txt. Commented Jan 21, 2012 at 14:47
  • 1
    Yes, I do have a watchdog. I'm just putting as many safety nets in place as possible. Commented Jan 21, 2012 at 14:49
  • Any way to shutdown instead of reboot? Commented Apr 20, 2018 at 19:39
  • @ShawnJ.Goff boot loader supports passing down this parameter long before userspace is booted. Anyways, see my answer: unix.stackexchange.com/a/517364/6622 Commented May 6, 2019 at 9:58