From 60bc7dc6738a5a08f4bf7f1bc79bbc4236a9cbf6 Mon Sep 17 00:00:00 2001 From: gygabites Date: Thu, 21 Mar 2024 11:40:40 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BF=D1=83=D1=82=D1=8C=20=D0=BA=20=D1=84=D0=B0?= =?UTF-8?q?=D0=B9=D0=BB=D1=83=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Для опции --settings добавлен путь до каталога файла настроек. --- service/windows/install.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/windows/install.bat b/service/windows/install.bat index 794641b..8cf8068 100644 --- a/service/windows/install.bat +++ b/service/windows/install.bat @@ -6,9 +6,9 @@ if not exist prometheus_1C_exporter.exe ( goto :exit ) -sc create prometheus_1C_exporter binpath= "%CD%\prometheus_1C_exporter.exe --settings=settings.yaml" start= auto DisplayName= "1C Prometheus exporter" +sc create prometheus_1C_exporter binpath= "%CD%\prometheus_1C_exporter.exe --settings=%CD%\settings.yaml" start= auto DisplayName= "1C Prometheus exporter" net start prometheus_1C_exporter sc query prometheus_1C_exporter -:exit \ No newline at end of file +:exit From 8e967c44ed95ee83896aca7de8f59b0acccf88e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Sat, 23 Mar 2024 18:37:07 +0300 Subject: [PATCH 2/2] Update install.bat --- service/windows/install.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/windows/install.bat b/service/windows/install.bat index 794641b..8cf8068 100644 --- a/service/windows/install.bat +++ b/service/windows/install.bat @@ -6,9 +6,9 @@ if not exist prometheus_1C_exporter.exe ( goto :exit ) -sc create prometheus_1C_exporter binpath= "%CD%\prometheus_1C_exporter.exe --settings=settings.yaml" start= auto DisplayName= "1C Prometheus exporter" +sc create prometheus_1C_exporter binpath= "%CD%\prometheus_1C_exporter.exe --settings=%CD%\settings.yaml" start= auto DisplayName= "1C Prometheus exporter" net start prometheus_1C_exporter sc query prometheus_1C_exporter -:exit \ No newline at end of file +:exit