|
|
@ -20,7 +20,7 @@ func main() {
|
|
|
|
|
|
|
|
|
|
|
|
for _, e := range os.Environ() {
|
|
|
|
for _, e := range os.Environ() {
|
|
|
|
s := strings.SplitN(e, "=", 2)
|
|
|
|
s := strings.SplitN(e, "=", 2)
|
|
|
|
if strings.Compare(s[0], "ICSVA_ROOT") == 0 {
|
|
|
|
if strings.Compare(s[0], "ICSVB_ROOT") == 0 {
|
|
|
|
homeDir = s[1]
|
|
|
|
homeDir = s[1]
|
|
|
|
//service.SetHomeDir(s[1])
|
|
|
|
//service.SetHomeDir(s[1])
|
|
|
|
isStop = true
|
|
|
|
isStop = true
|
|
|
@ -33,7 +33,7 @@ func main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//configuration
|
|
|
|
//configuration
|
|
|
|
configFile := fmt.Sprintf("%s/config/icsva.xml", homeDir)
|
|
|
|
configFile := fmt.Sprintf("%s/config/icsbot.xml", homeDir)
|
|
|
|
//configFile := fmt.Sprintf("%s/config/icsvc.xml", service.GetHomeDir())
|
|
|
|
//configFile := fmt.Sprintf("%s/config/icsvc.xml", service.GetHomeDir())
|
|
|
|
//fmt.Println("Config file:", configFile)
|
|
|
|
//fmt.Println("Config file:", configFile)
|
|
|
|
conf, confErr := icsconf.OpenConfig(configFile, homeDir)
|
|
|
|
conf, confErr := icsconf.OpenConfig(configFile, homeDir)
|
|
|
|