12345678910111213141516171819202122 |
- package main
- import (
- "flag"
- "github.com/jianboy/filecloud/service"
- )
- var (
- configPath = flag.String("file", "./config.toml", "config file")
- )
- func main() {
- flag.Parse()
- logger := service.InitLogger("log", "filecloud")
- service.LoadConfig(*configPath)
- service.Launch()
- logger.Info("stop")
- service.Stop()
- }
|