change /usr/bin/victoriametrics to /usr/bin/victoria-metrics-prod (#132)

This commit is contained in:
Anton Patsev 2019-07-28 23:40:46 +06:00 committed by Aliaksandr Valialkin
parent 8e3d69219f
commit 90cf6f3fcb
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ tar -zxf victoria-metrics.tar.gz
%install %install
%{__install} -m 0755 -d %{buildroot}%{_bindir} %{__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 %{__install} -m 0755 -d %{buildroot}/var/lib/victoria-metrics-data
%if %{use_systemd} %if %{use_systemd}
@ -45,7 +45,7 @@ cp victoria-metrics-prod %{buildroot}%{_bindir}/%{name}
%endif %endif
%files %files
%{_bindir}/%{name} %{_bindir}/victoria-metrics-prod
/var/lib/victoria-metrics-data /var/lib/victoria-metrics-data
%if %{use_systemd} %if %{use_systemd}
%{_unitdir}/%{name}.service %{_unitdir}/%{name}.service

View file

@ -8,7 +8,7 @@ StartLimitBurst=5
StartLimitInterval=0 StartLimitInterval=0
Restart=on-failure Restart=on-failure
RestartSec=1 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 ExecStop=/bin/kill -s SIGTERM $MAINPID
LimitNOFILE=65536 LimitNOFILE=65536
LimitNPROC=32000 LimitNPROC=32000