npc service init

This commit is contained in:
刘河
2019-12-16 02:28:31 +08:00
parent 72b61c4c4f
commit d930d9f003
2 changed files with 113 additions and 22 deletions

View File

@@ -55,6 +55,17 @@ func GetLogPath() string {
return path
}
//interface npc log file path
func GetNpcLogPath() string {
var path string
if IsWindows() {
path = filepath.Join(GetAppPath(), "npc.log")
} else {
path = "/var/log/npc.log"
}
return path
}
//interface pid file path
func GetTmpPath() string {
var path string