gen_gdl90 gracefulShutdown() on system shutdown or reboot request.

pull/720/head
cyoung 2018-04-19 10:37:30 -04:00
rodzic 991f48eaa5
commit 92dab38028
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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) {