kopia lustrzana https://github.com/cyoung/stratux
gen_gdl90 gracefulShutdown() on system shutdown or reboot request.
rodzic
991f48eaa5
commit
92dab38028
|
@ -381,11 +381,13 @@ func handleSettingsSetRequest(w http.ResponseWriter, r *http.Request) {
|
|||
func handleShutdownRequest(w http.ResponseWriter, r *http.Request) {
|
||||
syscall.Sync()
|
||||
syscall.Reboot(syscall.LINUX_REBOOT_CMD_POWER_OFF)
|
||||
gracefulShutdown()
|
||||
}
|
||||
|
||||
func doReboot() {
|
||||
syscall.Sync()
|
||||
syscall.Reboot(syscall.LINUX_REBOOT_CMD_RESTART)
|
||||
gracefulShutdown()
|
||||
}
|
||||
|
||||
func handleDeleteLogFile(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Ładowanie…
Reference in New Issue