修改默认服务名

This commit is contained in:
Minho 2017-06-05 11:37:22 +08:00
parent 7cbb8c9bdb
commit a7891ce709
2 changed files with 4 additions and 2 deletions

View File

@ -193,6 +193,7 @@ func ResolveCommand(args []string) {
utils.CopyFile(ConfigurationFile,config)
}
}
gocaptcha.ReadFonts(filepath.Join(WorkingDirectory,"static","fonts"), ".ttf")
err := beego.LoadAppConfig("ini", ConfigurationFile)

View File

@ -19,8 +19,8 @@ type Daemon struct {
func NewDaemon() *Daemon {
config := &service.Config{
Name: "MinDocService", //服务显示名称
DisplayName: "MinDoc service", //服务名称
Name: "mindocd", //服务显示名称
DisplayName: "MinDoc service", //服务名称
Description: "A document online management program.", //服务描述
WorkingDirectory: commands.WorkingDirectory,
Arguments: os.Args[1:],
@ -115,4 +115,5 @@ func Restart() {
} else {
beego.Info("Service Restart!")
}
os.Exit(0)
}