fix, 2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-02-10 12:48:42 +01:00
parent 1f13f354e1
commit 6d4b7541ef
8 changed files with 308 additions and 1 deletions

33
src/tsm/tsm.go Normal file
View File

@ -0,0 +1,33 @@
package main
import (
"log"
"os"
"os/signal"
"tsm/config"
"tsm/mqtt"
"tsm/tsmq"
)
func main() {
log.SetPrefix("TSM: ")
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
log.Println("starting")
config.LoadConfiguration()
mqtt.Start()
defer mqtt.Stop()
tsmq.Start()
defer tsmq.Stop()
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, os.Kill)
<- c
log.Println("terminating")
}