mirror of
https://github.com/ehang-io/nps.git
synced 2025-08-31 17:56:56 +00:00
npc service init
This commit is contained in:
@@ -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