From 90cf6f3fcb9b11183508e570677d1cdaf516aba1 Mon Sep 17 00:00:00 2001 From: Anton Patsev <10828883+patsevanton@users.noreply.github.com> Date: Sun, 28 Jul 2019 23:40:46 +0600 Subject: [PATCH] change /usr/bin/victoriametrics to /usr/bin/victoria-metrics-prod (#132) --- package/rpm/victoriametrics-rpm.spec | 4 ++-- package/rpm/victoriametrics.service | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/rpm/victoriametrics-rpm.spec b/package/rpm/victoriametrics-rpm.spec index e34d0b106..1bf36bcf6 100644 --- a/package/rpm/victoriametrics-rpm.spec +++ b/package/rpm/victoriametrics-rpm.spec @@ -20,7 +20,7 @@ tar -zxf victoria-metrics.tar.gz %install %{__install} -m 0755 -d %{buildroot}%{_bindir} -cp victoria-metrics-prod %{buildroot}%{_bindir}/%{name} +cp victoria-metrics-prod %{buildroot}%{_bindir}/victoria-metrics-prod %{__install} -m 0755 -d %{buildroot}/var/lib/victoria-metrics-data %if %{use_systemd} @@ -45,7 +45,7 @@ cp victoria-metrics-prod %{buildroot}%{_bindir}/%{name} %endif %files -%{_bindir}/%{name} +%{_bindir}/victoria-metrics-prod /var/lib/victoria-metrics-data %if %{use_systemd} %{_unitdir}/%{name}.service diff --git a/package/rpm/victoriametrics.service b/package/rpm/victoriametrics.service index 07a191959..62daddf57 100644 --- a/package/rpm/victoriametrics.service +++ b/package/rpm/victoriametrics.service @@ -8,7 +8,7 @@ StartLimitBurst=5 StartLimitInterval=0 Restart=on-failure RestartSec=1 -ExecStart=/usr/bin/victoriametrics -storageDataPath=/var/lib/victoria-metrics-data +ExecStart=/usr/bin/victoria-metrics-prod -storageDataPath=/var/lib/victoria-metrics-data ExecStop=/bin/kill -s SIGTERM $MAINPID LimitNOFILE=65536 LimitNPROC=32000