mirror of
https://github.com/ehang-io/nps.git
synced 2026-10-31 16:52:12 +08:00
npc service init
This commit is contained in:
1 parent
72b61c4c4f
commit
d930d9f003
2 files changed
+113
-22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user