auto restart

master
Alex 2021-12-28 16:59:55 +01:00
parent 7af4023663
commit f6fc67e7da
4 changed files with 8 additions and 0 deletions

1
go.mod
View File

@ -18,6 +18,7 @@ require (
github.com/klauspost/compress v1.13.6 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/savsgio/gotils v0.0.0-20210921075833-21a6215cb0e4 // indirect
github.com/slayer/autorestart v0.0.0-20170706172704-7bc8d250279b // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.30.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect

2
go.sum
View File

@ -76,6 +76,8 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/slayer/autorestart v0.0.0-20170706172704-7bc8d250279b h1:3EujQY7LEbzy5paxa0S2OrsL6+vTwYiUU/R272YlwiQ=
github.com/slayer/autorestart v0.0.0-20170706172704-7bc8d250279b/go.mod h1:p+QQKBy7tS+myk+y3sgnAKx4gUtD/Q9Z6KEd77cLzWY=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

BIN
main Executable file

Binary file not shown.

View File

@ -2,6 +2,7 @@ package main
import (
log "github.com/sirupsen/logrus"
"github.com/slayer/autorestart"
"krakatoa.net/backend/modules/configs/kraSettingsConfig"
"krakatoa.net/backend/modules/configs/serverConfig"
serverconfig "krakatoa.net/backend/modules/configs/serverConfig"
@ -24,12 +25,16 @@ func init() {
}
func main() {
autorestart.StartWatcher()
web.RunServer()
go web.Test()
minecraft.RunServer()
}
// aa
/*
"u"nsigned can hold only positive values
signed can hold negative and positve values