there is support for that in the kernel - called "watchdog"
though there are many ways like simply calling "reset"
there are things you could do in init(1) or systemd(1)
security-wise you only want "root" to have access to binary reboot(1) because a web page could activate it (ie, firefox now "demands" access to system compiler which could run programs since, once they can compile apps on your system? no security period.)
|