mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
修改默认服务名
This commit is contained in:
parent
7cbb8c9bdb
commit
a7891ce709
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user