2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 16:10:59 +08:00
Files
panel/cmd/ace/main.go
2026-01-26 02:41:35 +08:00

26 lines
309 B
Go

package main
import (
"os"
"runtime/debug"
_ "time/tzdata"
)
func main() {
if os.Geteuid() != 0 {
panic("panel must run as root")
}
debug.SetGCPercent(10)
debug.SetMemoryLimit(256 << 20)
ace, err := initAce()
if err != nil {
panic(err)
}
if err = ace.Run(); err != nil {
panic(err)
}
}