From e48ef93b520df3f20682c5bd2a14211e827f5e4d Mon Sep 17 00:00:00 2001 From: Wangjunqi123 Date: Wed, 18 Oct 2023 15:19:59 +0800 Subject: [PATCH] change the log file path --- conf/config_agent.yaml.templete | 2 +- conf/config_server.yaml.templete | 2 +- scripts/PilotGo-plugin-topology.spec | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/config_agent.yaml.templete b/conf/config_agent.yaml.templete index f5bc5c9..7e2d41e 100644 --- a/conf/config_agent.yaml.templete +++ b/conf/config_agent.yaml.templete @@ -6,6 +6,6 @@ PilotGo: log: level: debug driver: file # 可选stdout和file。stdout:输出到终端控制台;file:输出到path下的指定文件。 - path: /var/log/PilotGo/PilotGo-plugin-topology-agent.log + path: /opt/PilotGo/plugin/topology/agent/log/PilotGo/PilotGo-plugin-topology-agent.log max_file: 1 max_size: 10485760 diff --git a/conf/config_server.yaml.templete b/conf/config_server.yaml.templete index 99b14f8..0ac7526 100644 --- a/conf/config_server.yaml.templete +++ b/conf/config_server.yaml.templete @@ -7,7 +7,7 @@ PilotGo: log: level: debug driver: file # 可选stdout和file。stdout:输出到终端控制台;file:输出到path下的指定文件。 - path: /var/log/PilotGo/PilotGo-plugin-topology-server.log + path: /opt/PilotGo/plugin/topology/server/log/PilotGo/PilotGo-plugin-topology-server.log max_file: 1 max_size: 10485760 arangodb: diff --git a/scripts/PilotGo-plugin-topology.spec b/scripts/PilotGo-plugin-topology.spec index d266b87..369b9fc 100644 --- a/scripts/PilotGo-plugin-topology.spec +++ b/scripts/PilotGo-plugin-topology.spec @@ -43,21 +43,21 @@ GO111MODULE=on go build -mod=vendor -o PilotGo-plugin-topology-agent main.go %install # server -install -D -m 0755 server/PilotGo-plugin-topology-server %{buildroot}%{_bindir}/PilotGo-plugin-topology-server +install -D -m 0755 server/PilotGo-plugin-topology-server %{buildroot}/opt/PilotGo/plugin/topology/server/PilotGo-plugin-topology-server install -D -m 0644 conf/config_server.yaml.templete %{buildroot}/opt/PilotGo/plugin/topology/server/config_server.yaml install -D -m 0644 scripts/PilotGo-plugin-topology-server.service %{buildroot}/usr/lib/systemd/system/PilotGo-plugin-topology-server.service # agent -install -D -m 0755 agent/PilotGo-plugin-topology-agent %{buildroot}%{_bindir}/PilotGo-plugin-topology-agent +install -D -m 0755 agent/PilotGo-plugin-topology-agent %{buildroot}/opt/PilotGo/plugin/topology/agent/PilotGo-plugin-topology-agent install -D -m 0644 conf/config_agent.yaml.templete %{buildroot}/opt/PilotGo/plugin/topology/agent/config_agent.yaml install -D -m 0644 scripts/PilotGo-plugin-topology-agent.service %{buildroot}/usr/lib/systemd/system/PilotGo-plugin-topology-agent.service %files server -%{_bindir}/PilotGo-plugin-topology-server +/opt/PilotGo/plugin/topology/server/PilotGo-plugin-topology-server /opt/PilotGo/plugin/topology/server/config_server.yaml /usr/lib/systemd/system/PilotGo-plugin-topology-server.service %files agent -%{_bindir}/PilotGo-plugin-topology-agent +/opt/PilotGo/plugin/topology/agent/PilotGo-plugin-topology-agent /opt/PilotGo/plugin/topology/agent/config_agent.yaml /usr/lib/systemd/system/PilotGo-plugin-topology-agent.service -- Gitee