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