mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
change /usr/bin/victoriametrics to /usr/bin/victoria-metrics-prod (#132)
This commit is contained in:
parent
8e3d69219f
commit
90cf6f3fcb
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue