Initial commit for the web interface
This commit is contained in:
commit
4eea7769ff
36 changed files with 1186 additions and 0 deletions
31
main.go
Normal file
31
main.go
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"git.nemunai.re/nemunaire/reveil/config"
|
||||
)
|
||||
|
||||
var (
|
||||
Version = "custom-build"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cfg, err := config.Consolidated()
|
||||
if err != nil {
|
||||
log.Fatal("Unable to read configuration:", err)
|
||||
}
|
||||
|
||||
a := NewApp(cfg)
|
||||
go a.Start()
|
||||
|
||||
quit := make(chan os.Signal, 1)
|
||||
signal.Notify(quit, os.Interrupt, syscall.SIGTERM)
|
||||
<-quit
|
||||
log.Println("Stopping the service...")
|
||||
a.Stop()
|
||||
log.Println("Stopped")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue