change /usr/local/bin to /usr/bin (#131)

This commit is contained in:
Anton Patsev 2019-07-28 14:06:24 +06:00 committed by Aliaksandr Valialkin
parent 1eade9b358
commit 68f260d878
5 changed files with 10 additions and 11 deletions

View file

@ -33,7 +33,7 @@ BUILD=`cat ${PACKDIR}/VAR_BUILD | perl -ne 'chomp and print'`
mkdir -p "${TEMPDIR}" && echo "*** Created : ${TEMPDIR}" mkdir -p "${TEMPDIR}" && echo "*** Created : ${TEMPDIR}"
mkdir -p "${TEMPDIR}/usr/local/bin/" mkdir -p "${TEMPDIR}/usr/bin/"
mkdir -p "${TEMPDIR}/lib/systemd/system/" mkdir -p "${TEMPDIR}/lib/systemd/system/"
echo "*** Version : ${VERSION}-${BUILD}" echo "*** Version : ${VERSION}-${BUILD}"
@ -45,7 +45,7 @@ echo "*** Out .deb : ${OUT_DEB}"
# Copy the binary # Copy the binary
cp "./bin/${EXENAME_SRC}" "${TEMPDIR}/usr/local/bin/${EXENAME_DST}" cp "./bin/${EXENAME_SRC}" "${TEMPDIR}/usr/bin/${EXENAME_DST}"
# Copy supporting files # Copy supporting files

View file

@ -62,11 +62,11 @@ Requires: libc
VictoriaMetrics is fast, cost-effective and scalable time series database. It can be used as a long-term remote storage for Prometheus. VictoriaMetrics is fast, cost-effective and scalable time series database. It can be used as a long-term remote storage for Prometheus.
%files %files
%attr(0744, root, root) /usr/local/bin/* %attr(0744, root, root) /usr/bin/*
%attr(0644, root, root) /lib/systemd/system/* %attr(0644, root, root) /lib/systemd/system/*
%prep %prep
mkdir -p \$RPM_BUILD_ROOT/usr/local/bin/ mkdir -p \$RPM_BUILD_ROOT/usr/bin/
mkdir -p \$RPM_BUILD_ROOT/lib/systemd/system/ mkdir -p \$RPM_BUILD_ROOT/lib/systemd/system/
cp ${PWD}/bin/${EXENAME_SRC} \$RPM_BUILD_ROOT/usr/local/bin/${EXENAME_DST} cp ${PWD}/bin/${EXENAME_SRC} \$RPM_BUILD_ROOT/usr/local/bin/${EXENAME_DST}

View file

@ -1,8 +1,6 @@
%global _prefix /usr/local
Name: victoriametrics Name: victoriametrics
Version: 1.22.2 Version: 1.23.0
Release: 1 Release: 3
Summary: The best long-term remote storage for Prometheus Summary: The best long-term remote storage for Prometheus
Group: Development Tools Group: Development Tools

View file

@ -6,8 +6,9 @@ After=network.target
Type=simple Type=simple
StartLimitBurst=5 StartLimitBurst=5
StartLimitInterval=0 StartLimitInterval=0
Restart=on-abort Restart=on-failure
ExecStart=/usr/local/bin/victoriametrics -storageDataPath=/var/lib/victoria-metrics-data start RestartSec=1
ExecStart=/usr/bin/victoriametrics -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

View file

@ -8,7 +8,7 @@ StartLimitBurst=5
StartLimitInterval=0 StartLimitInterval=0
Restart=on-failure Restart=on-failure
RestartSec=1 RestartSec=1
ExecStart=/usr/local/bin/victoria-metrics-prod -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